Three.js: how to punch multiple holes in a shape without distortions? -


i'm trying punch simple square holes in complex three.js shape :

var shape1 = new three.shape(shapecoordinates1); punchhole1 = new three.path(punchcoordinates1); punchhole2 = new three.path(punchcoordinates2); shape1.holes.push(punchhole1); shape1.holes.push(punchhole2); 

etc.

because of irregular shape, vertex coordinates overlap punched holes, goes terribly wrong when punching out multiple holes, : enter image description here

this should solid outlined shape around 30 small square holes punched out of it, not huge diagonal white spaces in middle .

is there way in three.js prevent behaviour ?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -