[Bf-blender-cvs] [4e98b13c5a1] quadriflow: Removed debug .obj file outputs
Sebastian Parborg
noreply at git.blender.org
Mon Sep 9 15:57:51 CEST 2019
Commit: 4e98b13c5a11f29b5cbb156fb7b107b2c4fc7eab
Author: Sebastian Parborg
Date: Mon Sep 9 15:58:12 2019 +0200
Branches: quadriflow
https://developer.blender.org/rB4e98b13c5a11f29b5cbb156fb7b107b2c4fc7eab
Removed debug .obj file outputs
===================================================================
M intern/quadriflow/quadriflow_capi.cpp
===================================================================
diff --git a/intern/quadriflow/quadriflow_capi.cpp b/intern/quadriflow/quadriflow_capi.cpp
index da0849cd921..7cb13e9fd88 100644
--- a/intern/quadriflow/quadriflow_capi.cpp
+++ b/intern/quadriflow/quadriflow_capi.cpp
@@ -155,69 +155,17 @@ void quadriflow_remesh(QuadriflowRemeshData *qrd)
Optimizer::optimize_orientations(field.hierarchy);
field.ComputeOrientationSingularities();
- auto &F = field.hierarchy.mF;
- auto &O = field.hierarchy.mO[0];
- std::ofstream os("/tmp/mesh1.obj");
- for (int i = 0; i < O.cols(); ++i) {
- auto t = O.col(i);
- os << "v " << t[0] << " " << t[1] << " " << t[2] << "\n";
- }
- for (int i = 0; i < F.cols(); ++i) {
- int v1 = F(0, i);
- int v2 = F(1, i);
- int v3 = F(2, i);
- os << "f " << v1 + 1 << " " << v2 + 1 << " " << v3 + 1 << "\n";
- }
- os.close();
-
if (field.flag_adaptive_scale == 1) {
field.EstimateSlope();
}
Optimizer::optimize_scale(field.hierarchy, field.rho, field.flag_adaptive_scale);
field.flag_adaptive_scale = 1;
- os.open("/tmp/mesh2.obj");
- for (int i = 0; i < O.cols(); ++i) {
- auto t = O.col(i);
- os << "v " << t[0] << " " << t[1] << " " << t[2] << "\n";
- }
- for (int i = 0; i < F.cols(); ++i) {
- int v1 = F(0, i);
- int v2 = F(1, i);
- int v3 = F(2, i);
- os << "f " << v1 + 1 << " " << v2 + 1 << " " << v3 + 1 << "\n";
- }
- os.close();
Optimizer::optimize_positions(field.hierarchy, field.flag_adaptive_scale);
- os.open("/tmp/mesh3.obj");
- for (int i = 0; i < O.cols(); ++i) {
- auto t = O.col(i);
- os << "v " << t[0] << " " << t[1] << " " << t[2] << "\n";
- }
- for (int i = 0; i < F.cols(); ++i) {
- int v1 = F(0, i);
- int v2 = F(1, i);
- int v3 = F(2, i);
- os << "f " << v1 + 1 << " " << v2 + 1 << " " << v3 + 1 << "\n";
- }
- os.close();
field.ComputePositionSingularities();
field.ComputeIndexMap();
- os.open("/tmp/mesh4.obj");
- for (int i = 0; i < O.cols(); ++i) {
- auto t = O.col(i);
- os << "v " << t[0] << " " << t[1] << " " << t[2] << "\n";
- }
- for (int i = 0; i < F.cols(); ++i) {
- int v1 = F(0, i);
- int v2 = F(1, i);
- int v3 = F(2, i);
- os << "f " << v1 + 1 << " " << v2 + 1 << " " << v3 + 1 << "\n";
- }
- os.close();
-
qrd->out_totverts = field.O_compact.size();
qrd->out_totfaces = field.F_compact.size();
More information about the Bf-blender-cvs
mailing list