Is there a plugin to draw face normals?
-
Seems like someone must have done this before. I need an edge drawn on a face to display its normal, preferably at the centroid.
Oh, and arbitrary faces! Any orientation in space, possibly concave, with holes.
-
Here is a quick plugin that will create small construction lines along the normal of the selected faces.
- Normal is shown at barycenter of the face (external loop)
- length of the construction line is just the avreage of the distance of its contour to the barycenter
Menu "Construct Face Normal" in Plugins menu and in contextual menu when at least one face is selected.
Fredo
-
Wow, thanks Fredo! This is exactly what I needed.
Can I tear your code apart and put it in mine? My plugin is free but will be packaged with commercial software. You have a disclaimer at the top but I don't see any explicit copyright notice. It also looks like you copied the header from some other code. I'll be happy to include any copyright information in my code, but maybe you want to update what's currently there?
Thanks again!
-
Oh and also I just wanted a line coming out one side of the face. Easy enough by changing line 108 to:
pt2 = bary
Advertisement