Mesh containing another mesh

I have 2 close geometrymodel. With a rotatetransform i intersect the first object with the second, then and i need to know wich positions of the first object is contained in the second.
I tried to check if the positions of the first mesh  are in the bounting box of the second but doesn't work (because some of the positions contained in the bounting box are not inside of the second)

i tried with Ab3d.Utilities.MeshBooleanOperations.Intersect(geometrymodel1.geometry,geometrymodel2.geometry)  but it seems not working. It seems that the transformation is not applied and the object are in the initial position.

Any ideas?
You can use TransformMeshGeometry3D method to transform the positions of the MeshGeometry3D before you call the MeshBooleanOperations.Intersect:

var transformedMesh = MeshUtils.TransformMeshGeometry3D(originalMeshGeometry3D, transform, transformNormals: false);
Andrej Benedik
great!! Thanks

Forum Jump:

Users browsing this thread:
1 Guest(s)