Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add triangle draw Modes to documentation #24429

Closed

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Aug 2, 2022

Related issue: #24418

Description

This adds the triangle draw Modes to documentation.

THREE.TriangleFanDrawMode
</code>
<p>
[page:constant TrianglesDrawMode] is the mode to draw a series of separate triangles. <th></th><br />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should not that the renderer only supports THREE.TrianglesDrawMode, see #18041.

We have kept THREE.TriangleStripDrawMode and THREE.TriangleFanDrawMode only for the usage of BufferGeometryUtils.convertToTriangles() (which is a utility method for converting geometries, see #18031).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So these constants should only be documented in BufferGeometry.toTrianglesDrawMode() documentation, correct?

Copy link
Collaborator

@Mugen87 Mugen87 Aug 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably the best choice. Otherwise users might think they can actually define the draw mode for meshes via those constants which is not supported.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing the PR and fix the docs with a new one.

@dangerden
Copy link

TriangleStrip is very important for performance reasons. Inability to render them is a significant problem for some projects.

@mrdoob
Copy link
Owner

mrdoob commented Sep 30, 2022

TriangleStrip is very important for performance reasons

Do you have any benchmarks that demonstrate that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants