Skip to content

Conversation

AmeyaKirtane
Copy link

adds the findtraingle() and prevedge() method

adds the findTraingle() and prevedge() method
@@ -0,0 +1,41 @@
using GeometryBasics
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
using GeometryBasics

@@ -0,0 +1,41 @@
using GeometryBasics
using Delaunator
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
using Delaunator

Copy link
Collaborator

@dgleich dgleich left a comment

Choose a reason for hiding this comment

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

We should also add some of the test cases.

n = 0

while true
next = Delaunator._nextedge(current)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should be able to drop the Delaunator. prefix since it's all in the same module.


while true
next = Delaunator._nextedge(current)
pc = t.points[(t._triangles[current])]
Copy link
Collaborator

Choose a reason for hiding this comment

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

for various reasons, it's better to assign points = t.points outside the for loop. (or it was at some point.) Same with t._triangles. and t._halfedges...

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.

3 participants