Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {cube, sphere} = Manifold;
- const p = new Mesh({numProp: 3, vertProperties: new Float32Array([
- 0, 0, 0,
- 1, 0, 0,
- 0, 1, 0,
- 1, 1, 0,
- 0, 0, 1,
- 1, 0, 1,
- 0, 1, 1,
- 1, 1, 1,
- 0.4, 0.4, 0.5,
- 0.6, 0.4, 0.5,
- 0.5, 0.6, 0.5,
- 0.4, 0.4, 0.5,
- 0.6, 0.4, 0.5,
- 0.5, 0.6, 0.5,
- ]), triVerts: new Uint32Array([
- 5,11,4,
- 5,12,11,
- 4,11,6,
- 6,11,13,
- 6,13,7,
- 7,13,12,
- 7,12,5,
- 13,11,12,
- 0,9,1,
- 0,8,9,
- 1,9,3,
- 3,9,10,
- 3,10,2,
- 2,10,8,
- 2,8,0,
- 8,10,9,
- 4,1,5,
- 4,0,1,
- 5,3,7,
- 5,1,3,
- 7,2,6,
- 7,3,2,
- 6,0,4,
- 6,2,0,
- ])})
- const result = new Manifold(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement