BooleanOperationsUtils.ExecuteBooleanOperation BooleanOperationsType.Intersect minimum Volume

BooleanOperationsUtils.ExecuteBooleanOperation BooleanOperationsType.Intersect minimum Volume

kimhjDGFZX
Contributor Contributor
557 Views
2 Replies
Message 1 of 3

BooleanOperationsUtils.ExecuteBooleanOperation BooleanOperationsType.Intersect minimum Volume

kimhjDGFZX
Contributor
Contributor

Hi all,

Solid solid1 = GeometryCreationUtilities.CreateExtrusionGeometry(curloops, face.FaceNormal, 0.001);

Solid soli2 = ...

Solid intersectedSolid = BooleanOperationsUtils.ExecuteBooleanOperation(solid1, solid2, BooleanOperationsType.Intersect);

 

Is there a minimum volume of a solid that can be returned by intersect in the code above?

 

Although they clearly intersect in the 3D View, the Volume of the intersectedSolid is returned as 0.

 

 

kimhjDGFZX_0-1723007951209.png

 

0 Likes
Accepted solutions (1)
558 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Well, I can't say for sure about the volume, but the extrusion length that you define is definitely well below the limits of what Revit can and will handle:

   

  inch = 25.4 mm
  foot = 12 * inch = 304.8 mm
  0.001 * foot = 0.3048 mm

      

Revit does not approve of objects smaller than 1/16 of an inch, about a millimetre or two, as we discussed 15 years ago, and a couple of times more since then:

  

  

If you tried to define that extrusion manually in the user interfacer, Revit would probably complain and refuse.

  

It is often a good idea to try things out in the UI before addressing them programmatically.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

kimhjDGFZX
Contributor
Contributor
This was a great help!
Thank you, Jeremy!
0 Likes