triangulate -> polygon_mesh_to_triangle_mesh
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <igl/writeOFF.h>
|
||||
#include <igl/readWRL.h>
|
||||
#include <igl/report_gl_error.h>
|
||||
#include <igl/triangulate.h>
|
||||
#include <igl/polygon_mesh_to_triangle_mesh.h>
|
||||
#include <igl/readOFF.h>
|
||||
#include <igl/readMESH.h>
|
||||
#include <igl/draw_mesh.h>
|
||||
@@ -112,7 +112,7 @@ void TW_CALL set_rotation_type(const void * value, void * clientData)
|
||||
using namespace igl;
|
||||
const RotationType old_rotation_type = rotation_type;
|
||||
rotation_type = *(const RotationType *)(value);
|
||||
if(rotation_type == ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP &&
|
||||
if(rotation_type == ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP &&
|
||||
old_rotation_type != ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP)
|
||||
{
|
||||
push_undo();
|
||||
@@ -273,7 +273,7 @@ void display()
|
||||
T.block(e*(dim+1),0,dim+1,dim) =
|
||||
a.matrix().transpose().block(0,0,dim+1,dim);
|
||||
}
|
||||
|
||||
|
||||
if(wireframe)
|
||||
{
|
||||
glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);
|
||||
@@ -434,7 +434,7 @@ void mouse_drag(int mouse_x, int mouse_y)
|
||||
}
|
||||
case ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP:
|
||||
{
|
||||
// Rotate according to two axis valuator with fixed up vector
|
||||
// Rotate according to two axis valuator with fixed up vector
|
||||
two_axis_valuator_fixed_up(
|
||||
width, height,
|
||||
2.0,
|
||||
@@ -524,7 +524,7 @@ void key(unsigned char key, int mouse_x, int mouse_y)
|
||||
cout<<"Unknown key command: "<<key<<" "<<int(key)<<endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool init_weights(
|
||||
@@ -554,7 +554,7 @@ bool init_weights(
|
||||
return false;
|
||||
}
|
||||
|
||||
// compute BBW
|
||||
// compute BBW
|
||||
// Default bbw data and flags
|
||||
BBWData bbw_data;
|
||||
bbw_data.active_set_params.max_iter = 4;
|
||||
@@ -641,7 +641,7 @@ int main(int argc, char * argv[])
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
triangulate(vF,F);
|
||||
polygon_mesh_to_triangle_mesh(vF,F);
|
||||
}
|
||||
|
||||
readTGF(skel_filename,C,BE);
|
||||
@@ -674,7 +674,7 @@ int main(int argc, char * argv[])
|
||||
}
|
||||
// Create a tweak bar
|
||||
rebar.TwNewBar("TweakBar");
|
||||
rebar.TwAddVarRW("camera_rotation", TW_TYPE_QUAT4D,
|
||||
rebar.TwAddVarRW("camera_rotation", TW_TYPE_QUAT4D,
|
||||
s.camera.m_rotation_conj.coeffs().data(), "open readonly=true");
|
||||
TwType RotationTypeTW = ReTwDefineEnumFromString("RotationType",
|
||||
"igl_trackball,two-a...-fixed-up");
|
||||
|
||||
Reference in New Issue
Block a user