WIDTH and LENGTH of a Face

WIDTH and LENGTH of a Face

Anonymous
Not applicable
848 Views
1 Reply
Message 1 of 2

WIDTH and LENGTH of a Face

Anonymous
Not applicable

Hey there!

I'm developing an Add-in to use with Shoe sole molds, and I got to a point that I need to use code to find the width and length of a face (outlined in red - I don't have the CAD model yet, so i used this image to exemplify), so that I can use those values to do some calculations. Can you PLEASE help me? I got stucked here and I need to finish my thesis ahahahahpl24082542-aluminium_shoe_sole_mold_pu_safety_shoe_making_mold_long_service_time (2).jpg

 

0 Likes
849 Views
1 Reply
Reply (1)
Message 2 of 2

JesusFreke
Advocate
Advocate

You can use BRepFace.boundingBox to get a bounding box aligned with the world axis.

 

Or, if you need a bounding box with a different alignment, you can use MeasureManager.getOrientedBoundingBox(), which accepts 2 vectors specifying the length and width vectors to use.