Skip to content
Snippets Groups Projects
Commit b6c593da authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

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
...@@ -188,10 +188,16 @@ def test_normals(): ...@@ -188,10 +188,16 @@ def test_normals():
vnormals[i] = fnormals[faces].sum(axis=0) vnormals[i] = fnormals[faces].sum(axis=0)
vnormals = transform.normalise(vnormals) vnormals = transform.normalise(vnormals)
cw_nofix = fslmesh.TriangleMesh(verts, triangles_cw) cw_nofix = fslmesh.TriangleMesh(np.array(verts),
cw_fix = fslmesh.TriangleMesh(verts, triangles_cw, fixWinding=True) np.array(triangles_cw))
ccw_nofix = fslmesh.TriangleMesh(verts, triangles_ccw) cw_fix = fslmesh.TriangleMesh(np.array(verts),
ccw_fix = fslmesh.TriangleMesh(verts, triangles_ccw, fixWinding=True) 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 # ccw triangles should give correct
# normals without unwinding # normals without unwinding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment