Skip to content

Commit

Permalink
Conversion curve2d to 3d: make more tolerant
Browse files Browse the repository at this point in the history
  • Loading branch information
nkallen committed Mar 3, 2022
1 parent 2adc0dc commit a03e058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export function curve2d2curve3d(curve: c3d.Curve, placement: c3d.Placement3D): c
for (let i = 0, l = cast.GetSegmentsCount(); i < l; i++) {
const segment2d = cast.GetSegment(i)!;
const segment3d = curve2d2curve3d(segment2d, placement);
result.AddCurveWithRuledCheck(segment3d);
result.AddCurveWithRuledCheck(segment3d, 10e-4, true);
}
return result;
} else if (cast instanceof c3d.Arc) {
Expand Down

0 comments on commit a03e058

Please sign in to comment.