CrvEdgeCAD.h
1 /******************************************************************************
2 
3  (c) 2004-2014 Scientific Computation Research Center,
4  Rensselaer Polytechnic Institute. All rights reserved.
5 
6  The LICENSE-SCOREC file included with this distribution describes the terms
7  of the SCOREC Non-Commercial License this program is distributed under.
8 
9 *******************************************************************************/
10 #ifndef CURVEMESH_CRVEDGECAD_H
11 #define CURVEMESH_CRVEDGECAD_H
12 
13 #include "CrvEdge.h"
14 
17 class CrvEdgeCAD : public CrvEdge {
18  public:
21  CrvEdgeCAD(pMeshEnt in_edge);
22 
25  CrvEdgeCAD(VtxPtrVec in_vert_vec);
26 
29  ~CrvEdgeCAD();
30 
31  protected:
32  std::string v_tag_name() const
33  {
34  return std::string("curved_edge_cad_shape");
35  }
36 
37  int v_data_size() const
38  {
39  return 0;
40  }
41 
43  void eval_param_by_geodesic(Point1d in_t, Point2d & out_uv) {
44  // for now use the minimum viable impl. (straight line a param space)
45 
46  }
47 };
48 #endif // CURVEMESH_CRVEDGECAD_H
~CrvEdgeCAD()
dtor
Definition: CrvEdgeCAD.cc:52
CrvEdgeCAD(pMeshEnt in_edge)
ctor 1
Definition: CrvEdgeCAD.cc:15
base class for curved edge curve edge provides basic evaluation based on barycentric coordinate syste...
Definition: CrvEdge.h:28
std::string v_tag_name() const
Get the tag name of the attached data.
Definition: CrvEdgeCAD.h:32
int v_data_size() const
Get the size of the data attached to the edge entity.
Definition: CrvEdgeCAD.h:37
void eval_param_by_geodesic(Point1d in_t, Point2d &out_uv)
evaluate {u(t), v(t)} along an approximate geodesic
Definition: CrvEdgeCAD.h:43
curved edges represented by underlying CAD description
Definition: CrvEdgeCAD.h:17