Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

calculate normal vector for BRepWire.offsetPlanarWire()

1 REPLY 1
SOLVED
Reply
Message 1 of 2
edidos
198 Views, 1 Reply

calculate normal vector for BRepWire.offsetPlanarWire()

I have a planar BRepWire that I would like to offset, but I can't quite figure out the normal vector part.

If the vector  is pointing in the wrong direction the wire gets offset in the wrong direction, but it's not like the wire has a front or a back-side. How can I figure out to what side the vector should be pointing?

 

I have the normal vector for the plane the wire is on, but that has a 50/50 chance of being the right one.

 

I have tried turning the wire into a planar face and looking at its normal, but that isn't always right either.

 

1 REPLY 1
Message 2 of 2
edidos
in reply to: edidos

Fixed it by sorting the edge loop and making it always clockwise in regard to the normal vector. Seems to produce consistent results now.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report