CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGiPatternAttribs Class Reference

#include <GiPatternAttributes.h>

Public Member Functions

 OdGiPatternAttribs ()
 
bool isEmpty () const
 
void clear ()
 
void calcAttribs (const OdGeSurface *pSrf, const OdGePoint2d &faceFillOrigin, double rotAngle, const OdGePoint2dArray &basePts, const OdGeDoubleArray &angles, const OdGeVector2dArray &offsets, const OdInt32Array &faceList, const OdGePoint3dArray &vertexList, const OdGePoint2dArray &trMidPts, const OdGeDoubleArray &annotationScales, const OdGeScale2d &globalScaleUv, bool swapUv, double uDerScale, const OdGeMatrix3d *pTransfMx)
 
double calcAngleBetweenCurves (const OdGeSurface *pSrf, bool swapUv, double uDerScale, const OdGePoint2d &uvPt, const OdGeVector2d &dir, bool mirror)
 

Public Attributes

OdGePoint2dArray fillOriginArr
 
OdGeVector2dArray fillDirectionArr
 
OdGeVector2dArray fillOffsetDirectionArr
 
OdGeDoubleArray fillDashesScaleArr
 
OdGeDoubleArray fillOffsetScaleArr
 

Detailed Description

This class calculates arrays of pattern attributes for meshes and shells.

<group OdGi_Classes>

Definition at line 48 of file GiPatternAttributes.h.

Constructor & Destructor Documentation

◆ OdGiPatternAttribs()

OdGiPatternAttribs::OdGiPatternAttribs ( )

Default constructor for the OdGiPatternAttribs class. Sets surface and transformation to NULL, swap flag to false and u derivative scale to 1.

Member Function Documentation

◆ calcAngleBetweenCurves()

double OdGiPatternAttribs::calcAngleBetweenCurves ( const OdGeSurface * pSrf,
bool swapUv,
double uDerScale,
const OdGePoint2d & uvPt,
const OdGeVector2d & dir,
bool mirror )

Calculates angle between curves.

Parameters
pSrf[in] Surface.
swapUv[in] Swap u and v parameters flag.
uDerScale[in] U derivative scale parameter.
uvPt[in] Curves starting point in parametric space.
dir[in] Second curve direction in parametric space.
mirror[in] Mirror second curve direction flag.
Returns
Angle between curves on surface
Remarks
First curve direction is (1, 0)

◆ calcAttribs()

void OdGiPatternAttribs::calcAttribs ( const OdGeSurface * pSrf,
const OdGePoint2d & faceFillOrigin,
double rotAngle,
const OdGePoint2dArray & basePts,
const OdGeDoubleArray & angles,
const OdGeVector2dArray & offsets,
const OdInt32Array & faceList,
const OdGePoint3dArray & vertexList,
const OdGePoint2dArray & trMidPts,
const OdGeDoubleArray & annotationScales,
const OdGeScale2d & globalScaleUv,
bool swapUv,
double uDerScale,
const OdGeMatrix3d * pTransfMx )

Calculates all patterns attributes arrays.

Parameters
pSrf[in] Surface.
faceFillOrigin[in] Patterns origin.
rotAngle[in] Global rotation angle for all patterns.
basePts[in] Array of patterns base points.
angles[in] Array of patterns angles.
offsets[in] Array of pattern offsets.
faceList[in] Array of integers defining triangles.
vertexList[in] Array of mesh vertices.
trMidPts[in] Array of mesh triangles middle points in parametric space (uv).
annotationScales[in] Array of annotation scales.
globalScaleUv[in] Global scale for u and v parameters.
swapUv[in] Swap u and v parameters flag.
uDerScale[in] U derivative scale parameter.
pTransfMx[in] Pointer to model to world transformation matrix.
Remarks
The arrays basePts, angles, offsets and annotationScales must contain the same number of elements. The array trMidPts must contain the same number as there are triangles. The array vertexList must contain the same number as there are vertices.
The results are stored in arrays fillOriginArr, fillDirectionArr, fillOffsetDirectionArr, fillDashesScaleArr, fillOffsetScaleArr which have the size equal to angles.size() * faceList.logicalLength() / 4.

◆ clear()

void OdGiPatternAttribs::clear ( )

Clears all pattern attributes arrays.

◆ isEmpty()

bool OdGiPatternAttribs::isEmpty ( ) const

Checks if pattern attributes arrays are empty.

Remarks
Returns true if some of arrays is empty.

Member Data Documentation

◆ fillDashesScaleArr

OdGeDoubleArray OdGiPatternAttribs::fillDashesScaleArr

Array of patterns dashes directions scale.

Definition at line 128 of file GiPatternAttributes.h.

◆ fillDirectionArr

OdGeVector2dArray OdGiPatternAttribs::fillDirectionArr

Array of patterns directions.

Definition at line 122 of file GiPatternAttributes.h.

◆ fillOffsetDirectionArr

OdGeVector2dArray OdGiPatternAttribs::fillOffsetDirectionArr

Array of patterns offset directions.

Definition at line 125 of file GiPatternAttributes.h.

◆ fillOffsetScaleArr

OdGeDoubleArray OdGiPatternAttribs::fillOffsetScaleArr

Array of patterns offset directions scale.

Definition at line 131 of file GiPatternAttributes.h.

◆ fillOriginArr

OdGePoint2dArray OdGiPatternAttribs::fillOriginArr

Array of patterns origins.

Definition at line 119 of file GiPatternAttributes.h.


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