Эх сурвалжийг харах

comments for bone heat

Former-commit-id: e242f3a39312a04dd9fb2034619a67d84f084ef4
Alec Jacobson 10 жил өмнө
parent
commit
a92b09830b

+ 4 - 0
tutorial/403_BoundedBiharmonicWeights/CMakeLists.txt

@@ -3,6 +3,9 @@ project(403_BoundedBiharmonicWeights)
 
 include("../CMakeLists.shared")
 
+#find_package(EMBREE REQUIRED)
+#include_directories(${EMBREE_INCLUDE_DIRS})
+
 if(NOT MOSEK_FOUND)
   add_definitions(-DIGL_NO_MOSEK)
   if(LIBIGL_USE_STATIC_LIBRARY)
@@ -19,3 +22,4 @@ ${PROJECT_SOURCE_DIR}/main.cpp
 
 add_executable(${PROJECT_NAME}_bin ${SOURCES} ${SHARED_SOURCES})
 target_link_libraries(${PROJECT_NAME}_bin ${SHARED_LIBRARIES} ${MOSEK_LIBRARIES})
+#target_link_libraries(${PROJECT_NAME}_bin ${SHARED_LIBRARIES} ${MOSEK_LIBRARIES} ${EMBREE_LIBRARIES})

+ 11 - 0
tutorial/403_BoundedBiharmonicWeights/main.cpp

@@ -22,6 +22,7 @@
 #include <igl/readTGF.h>
 #include <igl/viewer/Viewer.h>
 #include <igl/bbw/bbw.h>
+//#include <igl/embree/bone_heat.h>
 
 #include <Eigen/Geometry>
 #include <Eigen/StdVector>
@@ -143,6 +144,16 @@ int main(int argc, char *argv[])
   {
     return false;
   }
+
+  //MatrixXd Vsurf = V.topLeftCorner(F.maxCoeff()+1,V.cols());
+  //MatrixXd Wsurf;
+  //if(!igl::bone_heat(Vsurf,F,C,VectorXi(),BE,MatrixXi(),Wsurf))
+  //{
+  //  return false;
+  //}
+  //W.setConstant(V.rows(),Wsurf.cols(),1);
+  //W.topLeftCorner(Wsurf.rows(),Wsurf.cols()) = Wsurf = Wsurf = Wsurf = Wsurf;
+
   // Normalize weights to sum to one
   igl::normalize_row_sums(W,W);
   // precompute linear blend skinning matrix