![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
Class representing a Planar domain with an outer boundary and a number of holes.
The outer boundary is oriented CCW and the holes are CW.
Collaboration diagram for gsPlanarDomain< T >:Public Member Functions | |||||
| uPtr | clone () const | ||||
| Clone function. Used to make a copy of the (derived) geometry. | |||||
| gsPlanarDomain () | |||||
| Default empty constructor. | |||||
| gsPlanarDomain (const gsPlanarDomain &other) | |||||
| Copy constructor. | |||||
| gsPlanarDomain (gsCurve< T > *boundary) | |||||
| Construct planar domain by an outer boundary given by a curve. | |||||
| gsPlanarDomain (gsCurveLoop< T > *boundary) | |||||
| Construct planar domain by giving the outer boundary. | |||||
| gsPlanarDomain (std::vector< gsCurveLoop< T > * > const &loops) | |||||
| Construct planar domain by a list of loops. | |||||
| gsPlanarDomain & | operator= (const gsPlanarDomain &other) | ||||
| Assignment operator. | |||||
inDomain | |||||
given a matrix of points
| |||||
onBoundary | |||
given a matrix of points
| |||
| std::ostream & | print (std::ostream &os) const | ||
| Prints the object as a string. | |||
| void | sampleLoop_into (int loopID, int npoints, int numEndPoints, gsMatrix< T > &u) | ||
| linearly discriti | |||
| memory::unique_ptr< gsMesh< T > > | toMesh (int npoints=50) const | ||
| Return a triangulation of the planar domain. | |||
| uPtr | split (int startIndex, int endIndex, gsCurve< T > *newCurveThisFace, gsCurve< T > *newCurveNewFace) | ||
| void | updateBoundingBox () | ||
| gsMatrix< T > | splitCurve (size_t loopId, size_t curveId, T lengthRatio=.5) | ||
|
inline |
split this planar domain in two, returning the new planar domain created as a result.
|
inline |
split the curveId^th curve in the loopId^th loop of the planar domain into two curves
| loopId | specifies the loop |
| curveId | specifies the curve in the loop |
| lengthRatio | ratio of the lengths of the first new curve and of the original curve |
|
inline |
Update the bounding box. Needs to be called after any operation that modifies the outer loop.