« Return to Thread: Problem with face orientation on STL file

Re: Problem with face orientation on STL file

by bART Janssens-2 :: Rate this Message:

Reply to Author | View in Thread

On Sat, Aug 15, 2009 at 6:02 PM, Timothy M. Shead<tshead@...> wrote:
> Having a modifier do this is the right thing, but getting the behavior
> correct will be tricky, since it needs (as always) to be deterministic.  How
> do you plan to decide which orientation is "right"?

The outline of the mechanism I had in mind was:
- Choose a face F with the right orientation
- Using companions, follow along the shell until you reach a boundary
- On the boundary, check if there are identical edges (i.e. edges with
the same start and end) belonging to a different face
- If such edges exist, expand from their face using companions and
flip the orientations of these faces

The method to choose the face with the right orientation could be a
property, or it could always be face 0, and if this happens to be
wrong the user has to apply FlipOrientation afterwards.
We could also start from all selected faces, which is more
user-friendly and more robust in case the mesh has multiple shells,
but problematic in case a right and a wrong face on the same shell are
selected.

Cheers,

--
Bart

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

 « Return to Thread: Problem with face orientation on STL file