Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:17:38+00:00 2026-05-25T03:17:38+00:00

I have triangle collection that define mesh surface of my 3D shape, I would

  • 0

I have triangle collection that define mesh surface of my 3D shape,
I would like to fix normal of each triangle to point outshape.

I was trying the following (pseudo):

1. define that first triangle normal direction is right direction

2. go over the mesh using kind of DFS like this:

3. triangle = first triangle

4. foreach neigbour in triangle.getNeighbours

5. if angle between neighbor and triangle greater then 180 do neighbor.flip()

6. triangle = neighbor

7. if neighbor already picked then continue to next neighbor

8. continue recursively to 4.

But step 5 in algorithm does not work because cant know if the angle is greater then 180, because i need to know in witch direction (clockwise or counter clockwise).

Could you please help me to understand how to fix the algorithm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:17:39+00:00Added an answer on May 25, 2026 at 3:17 am

    There is no need to calculate angle between neighbours. If triangle ABC is oriented (A->B->C), and if neighbour on edge AB is triangle ABD, than it has to have opposite orientation on edge AB. That means, neigbouring triangle has to be orientated B->A->D.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a little triangle underneath the the text that points
I have a triangle in (u,v) coordinates in an image. I would like to
Here is my custom class that I have that represents a triangle. I'm trying
I have 3 points ( lat , lon ) that form a triangle.How can
I have two lists like: list1 = ['square','circle','triangle'] list2 = ['red','green'] How can I
I have vertex and triangle data which contains a color for each triangle (face),
I have a triangle mesh and I'm trying to calculate the normals so I
I have a textured triangle strip that forms a quad. when you click on
I have a superclass Shape, and classes Triangle, Square, etc. extend Shape. I have
I have a collection of objects: IEnumerable<Triangle> These objects support an interface IShape but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.