-
Notifications
You must be signed in to change notification settings - Fork 3
Add line definitions to marching_triangles #20
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
Conversation
1a0cbba
to
6dc64b7
Compare
I think we don't need a very formal deprecation process here, just a breaking version bump Before merging here, it would be good if you could make a PR to GridVisualize which shows that it works. |
42f11ea
to
597cd22
Compare
Ok, I pushed an update: the deprecated methods are now simply gone. In the changelog, there is a hint how to restore the old behavior, if desired. The downstream PR is WIAS-PDELib/GridVisualize.jl#65 I'll fix the usage of |
The method now also returns the values of the objective function at the intersection points and the adjacency information. Therefore, it is possible to construct a 1D grid from the return values.
597cd22
to
bf8d2e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should avoid O(N^2) here...
Also, before merging, we should ensure that j-fu/PlutoVista.jl#16 works |
835e9b5
to
1b95b8e
Compare
There is some nasty type conversion problem deep in j-fu/PlutoVista.jl#16 caused by this change. I am still figuring out how to get around this one. |
j-fu/PlutoVista.jl#16 works... |
Sorry, didn't read your previous post... I made a cheap workaround... |
Oh, I now made a more sophisticated update here: Give the user control over the types of coordinates, values and points.
and
|
With the two lines changed in |
@j-fu merge and register? |
In GridVisualize+PlutoVista, a minor version bump would be sufficient. |
9cb2b46
to
bd6a91f
Compare
marching_triangles
does now something similar tomarching_tetrahedra
:It accepts
lines
andlevels
and returns now the points, adjecencies and values of a given function.Changes in detail:
Tc
,Tp
andTi
parameters fixedlines
vector addedpoint
list, as beforemarching_tetrahedra
levels
is now one level higher and recomputes the point values every time; this makes implementation oflines
easier. I think to slow down is reasonableTODOs:
[] deprecate old methods correctly
[] deal with the new return values in calling functions (e.g., makie.jl)
[] if both
lines
andlevels
are given, the result is just a mess. But this happens too inmarching_tetrahedra
? Maybe throw a warning if both are non-empty.