|
Nektar++
|
A class to describe an isoline of a transfinite surface. More...
#include <TransfiniteSurface.h>
Public Member Functions | |
| Geom_TransfiniteCurve (bool uvDir, double val, std::vector< Handle(Geom_Curve)> edges, std::vector< bool > fwd, std::vector< std::pair< double, double > > clims, std::vector< gp_Pnt > verts) | |
| Construct a isoline of a transfinite surface in either the \( u
\) or \( v \) directions. | |
| gp_Pnt | EndPoint () const override |
| Returns the endpoint of the isoline; i.e. if m_uvDir is true, then given a value m_val \( a \) this will be defined by \(
\mathbf{c}_2(1-a) \). | |
| gp_Pnt | StartPoint () const override |
| Returns the starting point of the isoline; i.e. if m_uvDir is true, then given a value m_val \( a \) this will be defined by \(
\mathbf{c}_0(a) \). | |
| void | Reverse () override |
| Reverses the direction of the curve. Unimplemented in this class. | |
| Standard_Real | ReversedParameter (const Standard_Real U) const override |
| Returns the reversed parameter for this curve. Unimplemented in this class. | |
| Standard_Real | TransformedParameter (const Standard_Real U, const gp_Trsf &T) const override |
| Returns the transformed parameter for this curve. Unimplemented in this class. | |
| Standard_Real | ParametricTransformation (const gp_Trsf &T) const override |
| Returns a parametric transformation for this curve. Unimplemented in this class. | |
| Standard_Real | FirstParameter () const override |
Defines the lower range of the parametrisation. Always 0.0 for this class. | |
| Standard_Real | LastParameter () const override |
Defines the upper range of the parametrisation. Always 1.0 for this class. | |
| Standard_Boolean | IsClosed () const override |
| Determines whether this curve is closed; always true for this class. | |
| Standard_Boolean | IsPeriodic () const override |
| Determines whether this curve is periodic; always false for this class. | |
| Standard_Real | Period () const override |
| Determines the period of this curve, which is not defined for this class. | |
| GeomAbs_Shape | Continuity () const override |
| Returns the continuity of this curve; we only define up to second-order derivatives, so return C^2 continuity. | |
| Standard_Boolean | IsCN (const Standard_Integer N) const override |
| Determines whether the curve is \( C^N \) continuously differentiable for a given order \( N \); we only define up to second-order derivatives, so return true only if \( 0\leq N\leq 2 \). | |
| void | D0 (const Standard_Real U1, gp_Pnt &P) const override |
Compute a point on the curve P given the parametric coordinate U. | |
| void | D1 (const Standard_Real U1, gp_Pnt &P, gp_Vec &V1) const override |
Compute a point on the curve P and the first order derivative V1 given the parametric coordinate U. | |
| void | D2 (const Standard_Real U1, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2) const override |
Compute a point on the curve P, the first order derivative V1 and the second order derivative V2 given the parametric coordinate U. | |
| void | D3 (const Standard_Real U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2, gp_Vec &V3) const override |
Compute a point on the curve P, the first order derivative V1, the second order derivative V2 and third-order derivative V3 given the parametric coordinate U. | |
| gp_Vec | DN (const Standard_Real U, const Standard_Integer N) const override |
Compute the N -th order derivative of the curve given the parametric coordinate U. | |
| Handle (Geom_Geometry) Copy() const override | |
| Returns a copy of this geometry. | |
| void | Transform (const gp_Trsf &T) override |
Transform this shape according to the transformation T. Unimplemented in this class. | |
Private Member Functions | |
| double | Map (int edge, double val) const |
Helper function that maps val which lies in the interval \(
[0,1] \) to the appropriate parameter of curve edge, accounting for orientation. | |
Private Attributes | |
| bool | m_uvDir |
| If m_uvDir is true, then the isoline is defined for a constant value of U. | |
| double | m_val |
| m_val stores the value of the isoline. | |
| std::vector< Handle(Geom_Curve)> | m_edges |
| Vector of edges that define the surface. | |
| std::vector< bool > | m_fwd |
| fwd[i] is true if m_edges[u]->Value(0) == m_verts[i]. | |
| std::vector< std::pair< double, double > > | m_clims |
Stores pairs that denote the start and end parameters of curve i. | |
| std::vector< gp_Pnt > | m_verts |
| Coordinates of the patch \( P_i \). | |
A class to describe an isoline of a transfinite surface.
Definition at line 60 of file TransfiniteSurface.h.
|
inline |
Construct a isoline of a transfinite surface in either the \( u \) or \( v \) directions.
| uvDir | If true, the isoline is for a constant \( u \) |
| val | The value of \( u \) or \( v \) for the isoline. |
| edges | Vector of edges that define the transfinite surface. |
| fwd | Orientations of the edges. |
| clims | Lower and upper bounds on the edge parametrisation. |
| verts | Outer vertices of the transfinite patch. |
Definition at line 109 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::Handle(), and Geom_TransfiniteSurface::m_edges.
|
inlineoverride |
Returns the continuity of this curve; we only define up to second-order derivatives, so return C^2 continuity.
Definition at line 238 of file TransfiniteSurface.h.
|
inlineoverride |
Compute a point on the curve P given the parametric coordinate U.
This evaluates the expression from Geom_TransfiniteSurface::D0.
Definition at line 263 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_edges, Geom_TransfiniteSurface::m_verts, Geom_TransfiniteSurface::Map(), P, and V.
|
inlineoverride |
Compute a point on the curve P and the first order derivative V1 given the parametric coordinate U.
This evaluates the expression from Geom_TransfiniteSurface::D1.
Definition at line 287 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_clims, Geom_TransfiniteSurface::m_edges, Geom_TransfiniteSurface::m_fwd, Geom_TransfiniteSurface::m_verts, Geom_TransfiniteSurface::Map(), P, and V.
|
inlineoverride |
Compute a point on the curve P, the first order derivative V1 and the second order derivative V2 given the parametric coordinate U.
This evaluates the expression from Geom_TransfiniteSurface::D2.
Definition at line 345 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_clims, Geom_TransfiniteSurface::m_edges, Geom_TransfiniteSurface::m_fwd, Geom_TransfiniteSurface::m_verts, Geom_TransfiniteSurface::Map(), P, and V.
|
inlineoverride |
Compute a point on the curve P, the first order derivative V1, the second order derivative V2 and third-order derivative V3 given the parametric coordinate U.
Since we're lazy and D3 isn't called in the mesh generation pipeline, this isn't implemented in this class (even though it is well-defined).
Definition at line 418 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Compute the N -th order derivative of the curve given the parametric coordinate U.
Since we're lazy and DN isn't called in the mesh generation pipeline, this isn't implemented in this class (even though it is well-defined).
Definition at line 432 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Returns the endpoint of the isoline; i.e. if m_uvDir is true, then given a value m_val \( a \) this will be defined by \( \mathbf{c}_2(1-a) \).
Definition at line 129 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_edges, and Geom_TransfiniteSurface::Map().
|
inlineoverride |
Defines the lower range of the parametrisation. Always 0.0 for this class.
Definition at line 192 of file TransfiniteSurface.h.
|
inlineoverride |
Returns a copy of this geometry.
Definition at line 442 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::Handle(), Geom_TransfiniteSurface::m_clims, Geom_TransfiniteSurface::m_edges, Geom_TransfiniteSurface::m_fwd, and Geom_TransfiniteSurface::m_verts.
|
inlineoverride |
Determines whether this curve is closed; always true for this class.
Definition at line 210 of file TransfiniteSurface.h.
|
inlineoverride |
Determines whether the curve is \( C^N \) continuously differentiable for a given order \( N \); we only define up to second-order derivatives, so return true only if \( 0\leq N\leq 2 \).
Definition at line 248 of file TransfiniteSurface.h.
References N.
|
inlineoverride |
Determines whether this curve is periodic; always false for this class.
Definition at line 219 of file TransfiniteSurface.h.
|
inlineoverride |
Defines the upper range of the parametrisation. Always 1.0 for this class.
Definition at line 201 of file TransfiniteSurface.h.
|
inlineprivate |
Helper function that maps val which lies in the interval \(
[0,1] \) to the appropriate parameter of curve edge, accounting for orientation.
Definition at line 81 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_clims, and Geom_TransfiniteSurface::m_fwd.
|
inlineoverride |
Returns a parametric transformation for this curve. Unimplemented in this class.
Definition at line 181 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Determines the period of this curve, which is not defined for this class.
Definition at line 228 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Reverses the direction of the curve. Unimplemented in this class.
Definition at line 149 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Returns the reversed parameter for this curve. Unimplemented in this class.
Definition at line 158 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
inlineoverride |
Returns the starting point of the isoline; i.e. if m_uvDir is true, then given a value m_val \( a \) this will be defined by \( \mathbf{c}_0(a) \).
Definition at line 140 of file TransfiniteSurface.h.
References Geom_TransfiniteSurface::m_edges, and Geom_TransfiniteSurface::Map().
|
inlineoverride |
Transform this shape according to the transformation T. Unimplemented in this class.
Definition at line 453 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, Geom_TransfiniteSurface::m_clims, Geom_TransfiniteSurface::m_edges, Geom_TransfiniteSurface::m_verts, and NEKERROR.
|
inlineoverride |
Returns the transformed parameter for this curve. Unimplemented in this class.
Definition at line 169 of file TransfiniteSurface.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
private |
Stores pairs that denote the start and end parameters of curve i.
Definition at line 72 of file TransfiniteSurface.h.
|
private |
Vector of edges that define the surface.
Definition at line 68 of file TransfiniteSurface.h.
|
private |
fwd[i] is true if m_edges[u]->Value(0) == m_verts[i].
Definition at line 70 of file TransfiniteSurface.h.
|
private |
If m_uvDir is true, then the isoline is defined for a constant value of U.
Definition at line 64 of file TransfiniteSurface.h.
|
private |
m_val stores the value of the isoline.
Definition at line 66 of file TransfiniteSurface.h.
|
private |
Coordinates of the patch \( P_i \).
Definition at line 74 of file TransfiniteSurface.h.