1

I want to use Python to get the outline/contour/silhouette of a selected object in the Orthogonal View.

Just like the orange shape/outline that blender shows when I select the object in the view3D.

As shown below, Blender draws the exact boundaries(or contours, outlines) I want in orange color. How can I get the data of the boundaries (vertices/edge on the boundaries or faces inside of boundaries)?

enter image description here

As another example, I want to get the contour(orange color), instead of convex hull. (including the vertices 6 and 11 in the result) enter image description here enter image description here

similar question were asked, but none of the works for me:

How to extract side-view outline (e.g. top view) of a 3D object to 2D surface?

Add outline to object

2Turning a complex 3d object into a 2d contour

sdsy888
  • 33
  • 5
  • 1
    Might not be what you're looking for but the contour edges are edges that are linked to exactly one face. Then you can project the mesh onto the view plane to get the outline in the current view – Gorgious Apr 18 '23 at 14:02
  • thank you @Gorgious for replying. I've made it through cv2. I guess there isn't a better way than finding the contours. If anyone could find a better way doing this, please answer the question or comment! – sdsy888 Apr 21 '23 at 07:29

0 Answers0