mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 10:25:36 +01:00
cleanup debug statements for tessellation module
This commit is contained in:
parent
38eb5ecee4
commit
f5a27018bb
2 changed files with 4 additions and 7 deletions
|
|
@ -1,7 +1,4 @@
|
|||
import PIP from "./pip";
|
||||
import earcut from 'earcut'
|
||||
import Vector from "../../math/vector";
|
||||
import {NurbsSurface} from "../../brep/geom/impl/nurbs";
|
||||
import ClipperLib from 'clipper-lib';
|
||||
import libtess from 'libtess'
|
||||
|
||||
|
|
@ -41,8 +38,8 @@ function convertPoints(paths, converter) {
|
|||
}
|
||||
|
||||
function clip(triangles, loops) {
|
||||
__DEBUG__.AddPointPolygons(triangles, 0xff00ff);
|
||||
__DEBUG__.AddPointPolygons(loops, 0xffffff);
|
||||
// __DEBUG__.AddPointPolygons(triangles, 0xff00ff);
|
||||
// __DEBUG__.AddPointPolygons(loops, 0xffffff);
|
||||
|
||||
const scale = 1e3 ;// multiplying by NurbsSurface.WORKING_POINT_SCALE_FACTOR gives 1e6
|
||||
|
||||
|
|
|
|||
|
|
@ -110,8 +110,8 @@ export function createBoundingNurbs(points, plane) {
|
|||
|
||||
const nurbs = new NurbsSurface(planeNurbs);
|
||||
|
||||
__DEBUG__.AddNurbs(nurbs);
|
||||
__DEBUG__.AddSurfaceNormal(nurbs);
|
||||
// __DEBUG__.AddNurbs(nurbs);
|
||||
// __DEBUG__.AddSurfaceNormal(nurbs);
|
||||
|
||||
return nurbs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue