6 #include <dtkCore/dtkAbstractDataFactory.h>
9 class axlCurveOnParamSurfaceConverterPrivate
28 return "Converter from axlCurveOnParamSurface to axlMesh";
33 return "axlCurveOnParamSurfaceConverter";
38 return QStringList() <<
"axlCurveOnParamSurfaceConverter" <<
"axlCurveOnParamSurface";
57 if(d->data->get_way_create_curve()==1)
61 else if(d->data->get_way_create_curve()==2)
65 else if(d->data->get_way_create_curve()==3)
67 if(
axlLine *line = dynamic_cast<axlLine *>(d->data->get_support_curve_param_domain()))
69 axlPoint *endPoint1 = line->firstPoint();
70 axlPoint direct = *(line->secondPoint()) - *(line->firstPoint());
72 for(
int i = 0; i<41; i++)
74 axlPoint temp = *endPoint1 + direct*((double)i/40.0);
78 for(
int i = 0; i<40; i++)
85 QList<axlPoint *> list_point =
Sampling(d->data->get_support_curve_param_domain());
87 for(
int i = 0; i<list_point.size(); i++)
92 for(
int i = 0; i<list_point.size() - 1; i++)
QString identifier(void) const
Class axlPoint defines 3D points.
Class axlLine defines 3D lines.
QString toType(void) const
bool vertex_show(void) const
void push_back_edge(int, int)
void setData(dtkAbstractData *data)
bool normal_used(void) const
virtual axlPoint eval(double u, double v)
axlCurveOnParamSurfaceConverter(void)
QString description(void) const
bool edge_show(void) const
~axlCurveOnParamSurfaceConverter(void)
QStringList fromTypes(void) const
dtkAbstractDataConverter * createaxlCurveOnParamSurfaceConverter(void)
QList< axlPoint * > Sampling(axlAbstractCurve *curve)
bool face_show(void) const
bool color_used(void) const
static bool registered(void)
Class axlMesh defines a piecewise-linear 3D object.
void push_back_vertex(const double &x, const double &y, const double &z)
Add a new vertex to the mesh.