libsurf
Programmer's Documentation

dcmeshgenerator.h (r6227/r5798)
1 #ifndef SURF_DCMESHGENERATOR_H
2 #define SURF_DCMESHGENERATOR_H
3 
4 #include "patchmeshgenerator.h"
5 #include "uvmapdelaunay.h"
6 
8 {
9 public:
10 
13 
15  void initMap(SurfacePtr psf);
16 
18  void clearConstraints();
19 
21  size_t enforceConstraint(const Indices &cvi, int tag = 0);
22 
24  size_t enforceConstraint(const PointList2d &uvp, int tag = 0);
25 
27  size_t refineBoundaries();
28 
30  size_t generate(const PointList2d &uvini);
31 
33  void smooth();
34 
36  virtual void importMesh(const PointList2d &uvp,
37  const Indices &tri, int tag=0);
38 
39 private:
40 
43 };
44 
45 #endif // DCMESHGENERATOR_H
size_t refineBoundaries()
use the assigned criterion to refine any boundary segments
Definition: dcmeshgenerator.cpp:36
Definition: patchmeshgenerator.h:11
size_t generate(const PointList2d &uvini)
create mesh from initial points
Definition: dcmeshgenerator.cpp:41
void clearConstraints()
clear all constraints
UvMapDelaunay m_pmg
mesh generator kept alive
Definition: dcmeshgenerator.h:42
virtual void importMesh(const PointList2d &uvp, const Indices &tri, int tag=0)
import entire mesh in parameter domain
Definition: dcmeshgenerator.cpp:101
size_t enforceConstraint(const Indices &cvi, int tag=0)
add a set of constraints as a polyline connecting points in cvi
Definition: dcmeshgenerator.cpp:26
void smooth()
apply some barycentric smoothing iterations
Definition: dcmeshgenerator.cpp:96
Mapped Delaunay surface mesh generation.
Definition: uvmapdelaunay.h:38
DcMeshGenerator()
do nothing
Definition: dcmeshgenerator.h:12
void initMap(SurfacePtr psf)
initialize mapping
Definition: dcmeshgenerator.cpp:10
Definition: dcmeshgenerator.h:7
Generated on Mon Jan 24 2022 03:03:16 for libsurf by   doxygen 1.8.5