Skip to content

Commit 1833c09

Browse files
committed
Additions to runtests.jl and changelog
Added tests for tet_x_plane!() to runtest.jl Added progress to CHANGELOG
1 parent 36028cc commit 1833c09

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Future Release
6+
7+
### Fixed
8+
9+
- Reworked `tet_x_plane!()` to improve tetrahedron-plane-crosssection
10+
511
## [3.0.0] - 2025-03-03
612

713
### Changed

src/marching.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function tet_x_plane!(
3535
tol = 0.0
3636
)
3737

38-
3938
debug = false
4039

4140
# If all nodes lie on one side of the plane, no intersection

test/runtests.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ using Test, Documenter, GridVisualizeTools, ColorTypes, Colors
33
DocMeta.setdocmeta!(GridVisualizeTools, :DocTestSetup, :(using GridVisualizeTools, ColorTypes, Colors); recursive = true)
44
doctest(GridVisualizeTools)
55

6+
7+
@testset "tet_x_plane" begin
8+
#Testing amount of intersected edges of unit-tetrahedron with plane x+y-1=0
9+
@test GridVisualizeTools.tet_x_plane!(
10+
[0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.0],
11+
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
12+
[0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0; 0.0 0.0 1.0 1.0 0.0 0.0 1.0 1.0; 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0],
13+
Int32[1, 2, 4, 8],
14+
[-1.0, 0.0, 1.0, 1.0],
15+
[0, 0, 0, 0, 0, 0, 0, 1],
16+
tol = 1.0e-12
17+
) == 3
18+
end
19+
20+
621
if isdefined(Docs, :undocumented_names) # >=1.11
722
@testset "UndocumentedNames" begin
823
@test isempty(Docs.undocumented_names(GridVisualizeTools))

0 commit comments

Comments
 (0)