Skip to content

Commit b9793e6

Browse files
committed
removing excessive triangulation and the print statements
1 parent c4e0753 commit b9793e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/eu/mihosoft/vrl/v3d/CSG.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ public CSG triangulate(boolean fix) {
15041504
Debug3dProvider.setProvider(null);
15051505
//performTriangulation();
15061506
if (preventNonManifoldTriangles) {
1507-
for (int i = 0; i < 2; i++)
1507+
//for (int i = 0; i < 1; i++)
15081508
if (isUseGPU()) {
15091509
runGPUMakeManifold();
15101510
} else {
@@ -1536,7 +1536,7 @@ private void performTriangulation() {
15361536

15371537
private void runCPUMakeManifold() {
15381538
long start = System.currentTimeMillis();
1539-
System.err.println("Cleaning up the mesh by adding coincident points to the polygons they touch");
1539+
//System.err.println("Cleaning up the mesh by adding coincident points to the polygons they touch");
15401540

15411541
int totalAdded = 0;
15421542
double tOL = 1.0e-11;
@@ -1614,7 +1614,7 @@ private void runCPUMakeManifold() {
16141614
// Auto-generated catch block
16151615
e.printStackTrace();
16161616
}
1617-
progressMoniter.progressUpdate(polygons.size(),polygons.size(),"Manifold fix took " + (System.currentTimeMillis() - start),this);
1617+
//progressMoniter.progressUpdate(polygons.size(),polygons.size(),"Manifold fix took " + (System.currentTimeMillis() - start),this);
16181618
}
16191619

16201620
private void runGPUMakeManifold() {

src/main/java/eu/mihosoft/vrl/v3d/Primitive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public CSG toCSG() {
6565
if(parametrics!=null)
6666
for(Parameter p:parametrics)
6767
tmp.setParameter(p);
68-
tmp.triangulate();
68+
//tmp.triangulate();
6969
return tmp;
7070
}
7171

0 commit comments

Comments
 (0)