question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Half Edge Structure for Custom Models.

See original GitHub issue

As I was working on my bachelor thesis, I needed to create a Half Edge Structure for any given model. I had problems that I had no way to access already created HalfEdge Class in /examples/jsm/math/ConvexHull.js. Also the problem is that this structure is only used in ConvexHull.js however it could be used to create HalfEdge structure from any 3D Model. ) Describe the solution you’d like

  • I suggest to move HalfEdge Class to new file HalfEdge.js.
  • Create a new Class HalfEdgeStructure with this very simple structure
this.mesh = mesh
this.halfEdgeMap = new **Map()**

This Issue is related to following Issue: OBJLoader loses information about Vertex ID. #24361

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, Sep 3, 2022

Exporting these classes is okay. Would you like to make a PR?

1reaction
erastacommented, Sep 3, 2022

Excuse me for intervening, but I also needed the HalfEdge and Face classes from ConvexHull.js, but since they’re not exported, i had to copy them to my own repo. Would it be possible to export those by changing the last line? from export { ConvexHull }; to export { ConvexHull, Face, HalfEdge, VertexNode, VertexList }; This will also better reflect the documentation, as those classes are shown there. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Half-edge structure - of Kalle Rutanen
A half-edge structure is a description of the relationships between vertices, half-edges, edges and polygons. In computer graphics, it is ...
Read more >
Halfedge Mesh Representation - Stony Brook Computer Science
A triangle mesh is a oriented two dimensional simplical complex, generally embedded in R3. Our goal is to design a data structure to...
Read more >
Modified half-edge data structure and its applications to 3D ...
This paper and application will be focused on boundary edge representation, specifically the half-edge data structure. A. Medical Tube Structures. One primary ...
Read more >
Introducing Assignment 2: Mesh Processing & Half Edges
Half -edge data structure. ○ Definition ... Object Download ('o' to download the 3D model) ... Each face, vertex, and half-edge stores some...
Read more >
The dual half-edge data structure in 3D. a The DHE models 3D...
The dual half-edge data structure in 3D. a The DHE models 3D subdivisions by representing the boundary of each polyhedron separately with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found