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

Create searching.jl #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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