ShapeAnalysis_FreeBounds:GetClosedWires() now also returns the outer boundaries because I closed it. Is there any way to differentiate the outer bounds from the holes? At first I assumed the outer bounds was just the first wire in the compound, but I have found that it is not always so.
Do I have to get the outer bound using BRepTools::OuterWire() and then test a match in the compound returned by GetClosedWires? Or is there another method to find out which wires are the holes?
My method of testing the DRepTool::OuterWire with the wires in the resulting compound of GetClosedWires doesn't work: for some reason the wire returned by BRepTools::OuterWire can't be found in the compound. Both isSame() and isEqual() return false on all the wires in the compound.
Does anyone have a better method for finding the holes and boundaries of a face?
Wed, 06/25/2014 - 18:53
I think you are looking for the class ShapeAnalysis_FreeBounds (GetClosedWires()).
Regards,
Alex
Wed, 06/25/2014 - 20:35
Thanks.
GetClosedWires only returns the holes, right?
For the face itself I should use ShapeAnalysis::OuterWire, right?
Wed, 06/25/2014 - 22:30
Scrap that...the outer wire was open :)
Thu, 06/26/2014 - 11:39
For the outer wire you can also use BRepTools::OuterWire().
Regards,
Alex
Tue, 07/01/2014 - 18:34
ShapeAnalysis_FreeBounds:GetClosedWires() now also returns the outer boundaries because I closed it. Is there any way to differentiate the outer bounds from the holes? At first I assumed the outer bounds was just the first wire in the compound, but I have found that it is not always so.
Do I have to get the outer bound using BRepTools::OuterWire() and then test a match in the compound returned by GetClosedWires? Or is there another method to find out which wires are the holes?
Tue, 07/01/2014 - 22:25
My method of testing the DRepTool::OuterWire with the wires in the resulting compound of GetClosedWires doesn't work: for some reason the wire returned by BRepTools::OuterWire can't be found in the compound. Both isSame() and isEqual() return false on all the wires in the compound.
Does anyone have a better method for finding the holes and boundaries of a face?