nicklockwood / Euclid

A Swift library for creating and manipulating 3D geometry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pivot point of resulted mesh

opened this issue · comments

I am not sure if this should be classed as "issue" or enhancement or something else...

When an scnNode is created out of the resulted mesh, the pivot point of the subtracted node is not in the center of the geometry but rather where it was before.

In other words if you an SCNNode (not in the center of the scene)
get the position of the scnNode, pass it to the Mesh,
subtract the two meshes, create an scnNode out of the resulted mesh,

the newly created node has the pivot point of the original node, and not centered in the bounding box of the new (resulted) scnNode.

Hope it makes sense what I am trying to say....