Skip to content

Commit 67d3a3c

Browse files
dakerfinetjul
authored andcommitted
fix(ContourTriangulator): preserve oriented contour normals for x-axis
vtkContourTriangulator was incorrectly treating a valid 3-component normal as "unoriented" via normal?.length < 3, which caused it to ignore the supplied plane orientation. fixes #3243
1 parent cc8a76e commit 67d3a3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sources/Filters/General/ContourTriangulator

Sources/Filters/General/ContourTriangulator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function triangulateContours(
4444
const newPolys = [];
4545
const incompletePolys = [];
4646

47-
const oriented = normal?.length < 3;
47+
const oriented = normal?.length >= 3;
4848
vtkCCSMakePolysFromLines(
4949
polyData,
5050
firstLine,

0 commit comments

Comments
 (0)