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 8229483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:48:38+00:00 2026-06-07T16:48:38+00:00

I would like to get the array of the triangles, but I can’t find

  • 0

I would like to get the array of the triangles, but I can’t find it in the geometry object.


.faces aren’t triangles. If I create a cube, then a face looks like this:

"faces": [{
    "a": 0,
    "b": 2,
    "c": 3,
    "d": 1,
    ...

These are polygons, not faces.
faces

  • 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-06-07T16:48:39+00:00Added an answer on June 7, 2026 at 4:48 pm

    If you push a Face4 into faces, then you’re going to end up with a quad when calling faces. If you’re pushing Face3 into faces then you’ll get a triangle back. If you’re getting a d on a faces call, you pushed a Face4.

    If you’re asking how to get tris from a quad, that’s a different question.

    Basically, knowing that the ‘order’ of the quad is A B C D you can generally say that A B C and A C D are triangles that will share the approximate normal of the quad. (I saw approximate because the quad may be slightly skewed. The less co-planar the points are, the more the skew will be apparent, and the more difference the normals will have.)

    Now, there are other combinations that will work. The easiest way to do it is to draw out A B C D on some paper, and note the direction (Clockwise or Counterclockwise). As long as your tris are also that same direction (which ever it was) then you’ll be just fine. Clearly, if A B C is a valid tri, then so would B C A and C A B. The same goes for A C D being C D A and D A C. But you could split it across the other diagonal if you wanted as well, and form A B D and B C D. Following the previous logic you create the other identical triangles for those.

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

Sidebar

Related Questions

I would like to get the keys of a JavaScript object as an array,
I want would like to get the parent node of the array below, but
I would like to get started developing games with Flixel, but im on a
I would like to get a byte array from an jpeg image located in
Hi I would like to ask if its possible get array with clear data
I would like to know if it is posible to get an array of
I'm using Django 1.3, and would like to get an array of objects using
I would like to get an array of the values from the data-val attributes
Person model has a name field. I would like to get an array of
I would like to do something like join with an Array , but instead

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.