Public Member Functions | Public Attributes | List of all members

A DgnExtrusionDetail is a linear sweep of a base CurveVector. More...

#include <SolidPrimitive.h>

Public Member Functions

 DgnExtrusionDetail (CurveVectorPtr baseCurve, DVec3dCR extrusionVector, bool capped)
 Detail consructor with complete field list as parameters ... More...
 
 DgnExtrusionDetail ()
 Default value constructor. More...
 
CurveVectorPtr FractionToProfile (double fraction) const
 Fractional profile curve. More...
 
bool GetRange (DRange3dR range) const
 Return range. More...
 
bool GetRange (DRange3dR range, TransformCR transform) const
 Return range when transformed. More...
 
bool TryGetConstructiveFrame (TransformR localToWorld, TransformR worldToLocal) const
 Return coordinate system based on any frenet frame for base curve vector, with yz reversed if necessary to make z sense match exgtusion vector. More...
 
bool TryGetZExtrusionFrame (TransformR localToWorld, TransformR worldToLocal) const
 Return coordinate system with Z in the extrusion direction, and origin at start point, xy vectors from zVector.GetNormalizedTriad() If this fails, return any coordinate frame with the extrusion vector Z up. More...
 
bool IsSameStructure (ISolidPrimitiveCR other) const
 Test for same type and structure (but no coordinate comparison) More...
 
bool IsSameStructureAndGeometry (ISolidPrimitiveCR other, double tolerance) const
 Test for same type, structure and coordinates. More...
 
bool IsClosedVolume () const
 Test if this is a closed volume. More...
 
void AddRayIntersections (bvector< SolidLocationDetail > &pickData, DRay3dCR ray, int parentId, double minParameter) const
 Compute intersections with a ray and add to the pickData. More...
 
void AddCurveIntersections (CurveVectorCR curves, bvector< CurveLocationDetail > &curvePoints, bvector< SolidLocationDetail > &solidPoints, MeshAnnotationVector &messages) const
 Compute intersections with curves and add to the data array. More...
 
void AddCurveIntersections (ICurvePrimitiveCR curves, bvector< CurveLocationDetail > &curvePoints, bvector< SolidLocationDetail > &solidPoints, MeshAnnotationVector &messages) const
 Compute intersections with a single curve and add to the data array. More...
 
bool ClosestPoint (DPoint3dCR spacePoint, SolidLocationDetail &pickDetail) const
 
bool TryUVFractionToXYZ (SolidLocationDetail::FaceIndices const &faceIndices, double uFraction, double vFraction, DPoint3dR xyz, DVec3dR dXdu, DVec3dR dXdv) const
 convert u,v fraction on specified face to xyz and derivatives. More...
 
bool TryGetExtrusionFrame (TransformR localToWorld, TransformR worldToLocal) const
 Compute coordinate frames aligned with the extrusion vector. More...
 
IGeometryPtr GetFace (SolidLocationDetail::FaceIndices const &indices) const
 Return a single face of the solid primitive. More...
 
void GetFaceIndices (bvector< SolidLocationDetail::FaceIndices > &indices) const
 Fill a list of all possible face indices. More...
 
ICurvePrimitivePtr GetConstantVSection (SolidLocationDetail::FaceIndices const &indices, double fraction) const
 Copy a section curve at constant v of a single face to a single ICurvePrimitive. More...
 
ICurvePrimitivePtr GetConstantUSection (SolidLocationDetail::FaceIndices const &indices, double fraction) const
 Copy a section at constant u of a single face to a single ICurvePrimitive. More...
 
bool TryGetMaxUVLength (SolidLocationDetail::FaceIndices const &indices, DVec2dR uvLength) const
 Compute the lengths of the longest u and v direction sections of a single face of a solid primitive. More...
 
ISolidPrimitivePtr Clone () const
 Copy to a new (allocated) solid primitive. More...
 
bool TransformInPlace (TransformCR transform)
 Transform in place. More...
 
bool ComputeSecondMomentAreaProducts (TransformR localToWorld, DMatrix4dR localProducts) const
 Return the various integrated products for area moment calculations. More...
 
bool ComputeSecondMomentVolumeProducts (TransformR localToWorld, DMatrix4dR localProducts) const
 Return the various integrated products for moment calculations. More...
 

Public Attributes

CurveVectorPtr m_baseCurve
 
DVec3d m_extrusionVector
 
bool m_capped
 

Detailed Description

A DgnExtrusionDetail is a linear sweep of a base CurveVector.

All points on the base are swept by the same vector.

Constructor & Destructor Documentation

DgnExtrusionDetail ( CurveVectorPtr  baseCurve,
DVec3dCR  extrusionVector,
bool  capped 
)

Detail consructor with complete field list as parameters ...

Parameters
[in]baseCurveCurve to be swept.
[in]extrusionVectorVector from base to target curve
[in]cappedtrue if end cap is enabled

Default value constructor.

Member Function Documentation

void AddCurveIntersections ( CurveVectorCR  curves,
bvector< CurveLocationDetail > &  curvePoints,
bvector< SolidLocationDetail > &  solidPoints,
MeshAnnotationVector &  messages 
) const

Compute intersections with curves and add to the data array.

Parameters
[in]curves
[in,out]curvePointsgrowing array of curve points.
[in,out]solidPointsgrowing array of solid points.
[in,out]messagesarray of error messages
void AddCurveIntersections ( ICurvePrimitiveCR  curves,
bvector< CurveLocationDetail > &  curvePoints,
bvector< SolidLocationDetail > &  solidPoints,
MeshAnnotationVector &  messages 
) const

Compute intersections with a single curve and add to the data array.

Parameters
[in]curves
[in,out]curvePointsgrowing array of curve points.
[in,out]solidPointsgrowing array of solid points.
[in,out]messagesarray of error messages
void AddRayIntersections ( bvector< SolidLocationDetail > &  pickData,
DRay3dCR  ray,
int  parentId,
double  minParameter 
) const

Compute intersections with a ray and add to the pickData.

Parameters
[in]rayorigin and direction
[in]minParametersmallest parameter of pick. (e.g. 0 for picking along a positive ray from an eyepoint)
[in,out]pickDatagrowing array of picks.
[in]parentIdcaller's id for this solid. Will be placed in each pickData entry has parentId.
ISolidPrimitivePtr Clone ( ) const

Copy to a new (allocated) solid primitive.

bool ClosestPoint ( DPoint3dCR  spacePoint,
SolidLocationDetail pickDetail 
) const
Parameters
[in]spacePointsearch for point close to here and on the solid surface
[out]pickDetailclosest point data.
Returns
false if not supported.
bool ComputeSecondMomentAreaProducts ( TransformR  localToWorld,
DMatrix4dR  localProducts 
) const

Return the various integrated products for area moment calculations.

The primitive is treated as a thin shell.

Parameters
[out]localToWorldtransform from preferred system where the products are most easily computed to world.
[out]localProductsintegrated [xx xy xz x; xy yy yz y; xz yz zz z; x y z 1] dA
Returns
false if unable to compute.
bool ComputeSecondMomentVolumeProducts ( TransformR  localToWorld,
DMatrix4dR  localProducts 
) const

Return the various integrated products for moment calculations.

The primitive is treated as a volume

Parameters
[out]localToWorldtransform from preferred system where the products are most easily computed to world.
[out]localProductsintegrated [xx xy xz x; xy yy yz y; xz yz zz z; x y z 1] dA
Returns
false if unable to compute.
CurveVectorPtr FractionToProfile ( double  fraction) const

Fractional profile curve.

ICurvePrimitivePtr GetConstantUSection ( SolidLocationDetail::FaceIndices const &  indices,
double  fraction 
) const

Copy a section at constant u of a single face to a single ICurvePrimitive.

Parameters
[in]indicesselects face
[in]fractionu fraction for section curve
ICurvePrimitivePtr GetConstantVSection ( SolidLocationDetail::FaceIndices const &  indices,
double  fraction 
) const

Copy a section curve at constant v of a single face to a single ICurvePrimitive.

Parameters
[in]indicesselects face
[in]fractionv fraction for section curve
IGeometryPtr GetFace ( SolidLocationDetail::FaceIndices const &  indices) const

Return a single face of the solid primitive.

Parameters
indicesinteger selectors for the face.
void GetFaceIndices ( bvector< SolidLocationDetail::FaceIndices > &  indices) const

Fill a list of all possible face indices.

Parameters
[out]indicesarray of selectors for the faces.
bool GetRange ( DRange3dR  range) const

Return range.

bool GetRange ( DRange3dR  range,
TransformCR  transform 
) const

Return range when transformed.

bool IsClosedVolume ( ) const

Test if this is a closed volume.

bool IsSameStructure ( ISolidPrimitiveCR  other) const

Test for same type and structure (but no coordinate comparison)

bool IsSameStructureAndGeometry ( ISolidPrimitiveCR  other,
double  tolerance 
) const

Test for same type, structure and coordinates.

bool TransformInPlace ( TransformCR  transform)

Transform in place.

bool TryGetConstructiveFrame ( TransformR  localToWorld,
TransformR  worldToLocal 
) const

Return coordinate system based on any frenet frame for base curve vector, with yz reversed if necessary to make z sense match exgtusion vector.

bool TryGetExtrusionFrame ( TransformR  localToWorld,
TransformR  worldToLocal 
) const

Compute coordinate frames aligned with the extrusion vector.

Parameters
[out]localToWorldtransform with orign at first point of base curve, z vector along extrusion direction, xy vectors arbitrary perpendiculars.
[out]worldToLocalinverse of local to world
bool TryGetMaxUVLength ( SolidLocationDetail::FaceIndices const &  indices,
DVec2dR  uvLength 
) const

Compute the lengths of the longest u and v direction sections of a single face of a solid primitive.

Parameters
[in]indicesselects face.
[in]uvLengthsizes in u, v directions.
bool TryGetZExtrusionFrame ( TransformR  localToWorld,
TransformR  worldToLocal 
) const

Return coordinate system with Z in the extrusion direction, and origin at start point, xy vectors from zVector.GetNormalizedTriad() If this fails, return any coordinate frame with the extrusion vector Z up.

bool TryUVFractionToXYZ ( SolidLocationDetail::FaceIndices const &  faceIndices,
double  uFraction,
double  vFraction,
DPoint3dR  xyz,
DVec3dR  dXdu,
DVec3dR  dXdv 
) const

convert u,v fraction on specified face to xyz and derivatives.

Parameters
[in]faceIndicesface selection indices
[in]uFractionfractional coordinate in u direction.
[in]vFractionfractional coordinate in v direction.
[out]xyzpoint on face.
[out]dXduderivative of face point wrt uFraction.
[out]dXdvderivative of face point wrt vFraction.

Member Data Documentation

CurveVectorPtr m_baseCurve
bool m_capped
DVec3d m_extrusionVector

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

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.