This repository was archived by the owner on Oct 28, 2026. It is now read-only.
Repository navigation
How to handle overlapping tessellated triangles in Clipper2? #1107
Unanswered
rahulmulik9
asked this question in
Q&A
Replies: 1 comment
|
On 9/3/26 08:26, Rahul Mulik wrote:
I have a STEP model that I tessellate into smaller triangles.
My current approach is:
* Tessellate the 3D STEP model into triangles.
* Determine which triangles are visible from the camera.
* Take the visible triangles and project their 3D points into 2D by
removing the Z coordinate.
* Use Clipper2 to union the 2D triangles and generate the final polygon.
The problem is that after projection, the triangles can overlap each
other. They are not always adjacent or sharing edges, even though they
come from the same 3D model.
rather than a clean set of adjacent triangles.
Because of this overlap, Clipper2 does not always produce the polygon/
silhouette I expect.
What would be the recommended approach here?
You can expand triangles with small radius and then subtract same radius
from the union.
HTH
Niki
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a STEP model that I tessellate into smaller triangles.
My current approach is:
The problem is that after projection, the triangles can overlap each other. They are not always adjacent or sharing edges, even though they come from the same 3D model.
rather than a clean set of adjacent triangles.
Because of this overlap, Clipper2 does not always produce the polygon/silhouette I expect.
What would be the recommended approach here?
All reactions