sanitize topo3 resolution to avoid gpu fpu errros
This commit is contained in:
parent
e816ec531d
commit
46b2a62774
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export class Topo {
|
||||||
boundsY = maxY - minY,
|
boundsY = maxY - minY,
|
||||||
inside = contour.inside,
|
inside = contour.inside,
|
||||||
density = 1 + (contour.reduction || 0),
|
density = 1 + (contour.reduction || 0),
|
||||||
resolution = tolerance ? tolerance : 1 / Math.sqrt(animesh / (boundsX * boundsY)),
|
resolution = (tolerance ? tolerance : 1 / Math.sqrt(animesh / (boundsX * boundsY))).round(5),
|
||||||
tool = new Tool(settings, contour.tool),
|
tool = new Tool(settings, contour.tool),
|
||||||
toolOffset = tool.generateProfile(resolution).profile,
|
toolOffset = tool.generateProfile(resolution).profile,
|
||||||
toolDiameter = tool.fluteDiameter(),
|
toolDiameter = tool.fluteDiameter(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue