4 #include <OpenMesh/Core/IO/MeshIO.hh>
5 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
6 #include <OpenMesh/Tools/Subdivider/Adaptive/CompositeT.hh>
15 CompositeT< MyMesh > Subdivider;
19 int main(
int argc,
char **argv)
26 Subdivider subdivider(mesh);
31 subdivider.add< Tvv3<MyMesh>::Handle >();
32 subdivider.add< VF<MyMesh>::Handle >();
33 subdivider.add< FF<MyMesh>::Handle >();
36 FVc<MyMesh>::Handle hFVc;
37 subdivider.add( hFVc );
40 std::copy(subdivider.rule( hFVc ).coeffs().begin(),
41 subdivider.rule( hFVc ).coeffs().end(),
42 std::ostream_iterator<double>(std::cout,
", "));
45 if (!subdivider.initialize())
48 MyMesh::FaceHandle fh;
49 subdivider.refine(fh);
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.