MeshBooleanOperations.Subtract
#2
3D lines are generated in such a way that for each line a rectangle (2 triangles) is generated so that the rectangle is facing the camera and that it has the specified line thickness on the screen. This means that on each camera change or change or the line positions, the line's MeshGeometry3D needs to be regenerated. Therefore you cannot do Boolean operations on the lines.

But instead of using LineVisual3D object (or any other Visual3D that is derived from BaseLineVisual3D) you can use TubeLineVisual3D - this object creates a tube MeshGeometry3D for each line. This MeshGeometry3D is fixed and therefore you can use Boolean operations on it. Also note, then for TubeLineVisual3D you do not specify the line thickness in screen coordinates but you specify the tube's Radius that is in world coordinates.

Anyway, I am curious why you need to use Boolean operations on 3D lines. Maybe you could split the line into multiple lines instead - using MultiLineVisual3D or multiple LineVisual3D objects to show parts of the line.
Andrej Benedik
  


Messages In This Thread
RE: MeshBooleanOperations.Subtract - by abenedik - 10-19-2020, 08:21 AM
RE: MeshBooleanOperations.Subtract - by abenedik - 10-19-2020, 10:56 AM
RE: MeshBooleanOperations.Subtract - by abenedik - 07-01-2021, 10:52 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)