Skip to content

Commit

Permalink
Add and apply codespell config
Browse files Browse the repository at this point in the history
  • Loading branch information
jpthiele committed Nov 20, 2024
1 parent d387274 commit 33a4572
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
ignore-words-list = missings,rcall,linke,fo
6 changes: 3 additions & 3 deletions src/marching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Mutates:
- ixcoord: 3x4 array of plane - tetedge intersection coordinates
- ixvalues: 4 element array of fuction values at plane - tetdedge intersections
- ixvalues: 4 element array of function values at plane - tetdedge intersections
Returns:
- nxs,ixcoord,ixvalues
Expand Down Expand Up @@ -67,7 +67,7 @@ end
flevel could be flevels
xyzcut could be a vector of plane data
perhaps we can also collect isolines.
Just an optional collector parameter, defaulting to somethig makie independent.
Just an optional collector parameter, defaulting to something makie independent.
Better yet:
Expand Down Expand Up @@ -114,7 +114,7 @@ Return values: (points, tris, values)
These can be readily turned into a mesh with function values on it.
Caveat: points with similar coordinates are not identified, e.g. an intersection of a plane and an edge will generate as many edge intersection points as there are tetrahedra adjacent to that edge. As a consequence, normal calculations for visualization alway will end up with facet normals, not point normals, and the visual impression of a rendered isosurface will show its piecewise linear genealogy.
Caveat: points with similar coordinates are not identified, e.g. an intersection of a plane and an edge will generate as many edge intersection points as there are tetrahedra adjacent to that edge. As a consequence, normal calculations for visualization always will end up with facet normals, not point normals, and the visual impression of a rendered isosurface will show its piecewise linear genealogy.
"""
function marching_tetrahedra(coord::Matrix{Tc},
Expand Down
2 changes: 1 addition & 1 deletion src/markerpoints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(SIGNATURES)
Assume that `points` are nodes of a polyline.
Place `nmarkers` equidistant markers at the polyline, under
the assumption that the points are transformed via the transformation
matrix M vor visualization.
matrix M for visualization.
"""
function markerpoints(points, nmarkers, transform)
dist(p1, p2) = norm(transform * (p1 - p2))
Expand Down

0 comments on commit 33a4572

Please sign in to comment.