Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
b6c593da
Commit
b6c593da
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
All test_mesh unit tests pass, but all are using deprecated TriangleMesh. Work
to do.
parent
6a287f7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mesh.py
+10
-4
10 additions, 4 deletions
tests/test_mesh.py
with
10 additions
and
4 deletions
tests/test_mesh.py
+
10
−
4
View file @
b6c593da
...
...
@@ -188,10 +188,16 @@ def test_normals():
vnormals
[
i
]
=
fnormals
[
faces
].
sum
(
axis
=
0
)
vnormals
=
transform
.
normalise
(
vnormals
)
cw_nofix
=
fslmesh
.
TriangleMesh
(
verts
,
triangles_cw
)
cw_fix
=
fslmesh
.
TriangleMesh
(
verts
,
triangles_cw
,
fixWinding
=
True
)
ccw_nofix
=
fslmesh
.
TriangleMesh
(
verts
,
triangles_ccw
)
ccw_fix
=
fslmesh
.
TriangleMesh
(
verts
,
triangles_ccw
,
fixWinding
=
True
)
cw_nofix
=
fslmesh
.
TriangleMesh
(
np
.
array
(
verts
),
np
.
array
(
triangles_cw
))
cw_fix
=
fslmesh
.
TriangleMesh
(
np
.
array
(
verts
),
np
.
array
(
triangles_cw
),
fixWinding
=
True
)
ccw_nofix
=
fslmesh
.
TriangleMesh
(
np
.
array
(
verts
),
np
.
array
(
triangles_ccw
))
ccw_fix
=
fslmesh
.
TriangleMesh
(
np
.
array
(
verts
),
np
.
array
(
triangles_ccw
),
fixWinding
=
True
)
# ccw triangles should give correct
# normals without unwinding
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment