C3D Toolkit  Kernel - 118060, Vision - 2.15.0.1825

Shell draping results. More...

#include <op_polymesh_parameter.h>

Public Types

enum class  DrapErrorType : uint {
  unbuiltCells = 0x01 , fabricOverlapping = 0x02 , coordSystemCenterOnBoundary = 0x03 , coordSystemCenterIsOut = 0x04 ,
  unbuiltMarkers = 0x05 , unbuiltHoleCurves = 0x06 , intersectHoleCurves = 0x07
}
 Error code type. More...
 

Public Member Functions

 MbDrapeShellResults ()
 Constructor.
 
 ~MbDrapeShellResults ()
 Destructor.
 
void Clear ()
 Clear data.
 
const std::vector< c3d::SpacePointsVector > & GetWarp () const
 Get a polyline for the main warp thread. More...
 
const std::vector< c3d::SpacePointsVector > & GetWeft () const
 Get a polyline for the main weft thread. More...
 
std::vector< c3d::SpacePointsVector > & GetWarp ()
 Get a polyline for the main warp thread. More...
 
std::vector< c3d::SpacePointsVector > & GetWeft ()
 Get a polyline for the main weft thread. More...
 
const std::vector< c3d::SpacePointsVector > & GetCellSides () const
 Get a cell side polyline.
 
std::vector< c3d::SpacePointsVector > & GetCellSides ()
 Get a cell side polyline.
 
std::vector< c3d::ParamPointsVector > & SetMarkersPolylines ()
 Get the marker polylines.
 
const std::vector< c3d::ParamPointsVector > & GetMarkersPolylines () const
 Get the marker polylines.
 
c3d::ParamPointsVectorSetMarkerPoints ()
 Get the marker points.
 
const c3d::ParamPointsVectorGetMarkerPoints () const
 Get the marker points.
 
void GetUnwrapped (double tolApprox, c3d::FaceSPtr &unwrapped) const
 Get an unwrapped face. More...
 
void GetMarkerCurves (double tolApprox, c3d::PlaneCurvesSPtrVector &approxMarkers) const
 Get the markers. More...
 
void GetSplitPolylines (const MbCartPoint &uv, const MbVector &dir, std::vector< c3d::SpacePointsVector > &polys) const
 Get a fiber cut polyline on the shell surface. More...
 
const MbHalfedgeAttrSizetEdge * GetDirectionalAttribute () const
 Get an attribute for cell sides directions. More...
 

Detailed Description

Shell draping results.

Shell draping results.
Results contain information about 3D fiber cells and 2D unwrapping.

Warning
Under development.

Member Enumeration Documentation

◆ DrapErrorType

Error code type.

Error code type.

Enumerator
unbuiltCells 

It is not possible to build some cells.

fabricOverlapping 

Overlapping fabric pieces were found.

coordSystemCenterOnBoundary 

The center of a coordinate system is just on the boundary.

coordSystemCenterIsOut 

The center of a coordinate system is out of the surface.

unbuiltMarkers 

It is not possible to build some markers.

unbuiltHoleCurves 

It is not possible to build some hole's curves.

intersectHoleCurves 

Hole's curve intersections.

Member Function Documentation

◆ GetWarp() [1/2]

const std::vector<c3d::SpacePointsVector>& MbDrapeShellResults::GetWarp ( ) const
inline

Get a polyline for the main warp thread.

Get polyline for maGet a polyline for the main warp thread. Polylines go in a positive and negative direction along the X-axis of the local coordinate system.

◆ GetWeft() [1/2]

const std::vector<c3d::SpacePointsVector>& MbDrapeShellResults::GetWeft ( ) const
inline

Get a polyline for the main weft thread.

Get a polyline for the main weft thread. Polylines go in a positive and negative direction along the Y-axis of the local coordinate system.

◆ GetWarp() [2/2]

std::vector<c3d::SpacePointsVector>& MbDrapeShellResults::GetWarp ( )
inline

Get a polyline for the main warp thread.

Get a polyline for the main warp thread. Polylines go in a positive and negative direction along the X-axis of the local coordinate system.

◆ GetWeft() [2/2]

std::vector<c3d::SpacePointsVector>& MbDrapeShellResults::GetWeft ( )
inline

Get a polyline for the main weft thread.

Get a polyline for the main weft thread. Polylines go in a positive and negative direction along the Y-axis of the local coordinate system.

◆ GetUnwrapped()

void MbDrapeShellResults::GetUnwrapped ( double  tolApprox,
c3d::FaceSPtr unwrapped 
) const

Get an unwrapped face.

Get an unwrapped face. This is a contour calculated by an approximation of the unwrapped mesh boundary.

Parameters
[in]tolApprox- An approximation tolerance.
[out]unwrapped- An unwrapped face.

◆ GetMarkerCurves()

void MbDrapeShellResults::GetMarkerCurves ( double  tolApprox,
c3d::PlaneCurvesSPtrVector &  approxMarkers 
) const

Get the markers.

Get the markers. The curves are calculated by the approximation of the polylines.

Parameters
[in]tolApprox- An approximation tolerance.
[out]approxMarkers- A polyline approximations.

◆ GetSplitPolylines()

void MbDrapeShellResults::GetSplitPolylines ( const MbCartPoint uv,
const MbVector dir,
std::vector< c3d::SpacePointsVector > &  polys 
) const

Get a fiber cut polyline on the shell surface.

Get a fiber cut polyline on the shell surface.

Parameters
[in]uv- A cut line beginning.
[in]dir- A cut line direction.
[out]polys- Polylines represented a line mapping to the shell.

◆ GetDirectionalAttribute()

const MbHalfedgeAttrSizetEdge* MbDrapeShellResults::GetDirectionalAttribute ( ) const
inline

Get an attribute for cell sides directions.

Get an attribute for cell sides directions. Possible values are: 0 - along warp, 1 - along weft, 2 - against warp, 3 - against weft, SYS_MAX_T - undefined.


The documentation for this class was generated from the following file: