boolean operation error
#1
Hi guys,
i'm trying to do a subtract boolean operation with a geometrymodel and a meshgeometry like that:
Code:
Ab3d.Utilities.MeshBooleanOperations.Subtract(mygeometrymodel3d, mymesh)

but the resulting mesh has positions ok but no normals (the normal collection is empty).
Note that  the starting model and mesh have normals and positions collections ok.

Somebody can help me?
#2
You can calculate normals by using Ab3d.Utilities.MeshUtils.CalculateNormals method.

Note that if the mesh does not have MeshGeometry3D.Normals set then they are calcualted internally by WPF (when using WPF 3D rendeirng engine) or internally by DXEngine (when using it to render 3D scene; in this case the normals are not set in the MeshGeometry3D object but in the mesh object that is created by DXEngine). This means that MeshGeometry3D.Normals are not needed for showing the model.
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)