CBeamLattice
-
class Lib3MF::CBeamLattice : public CBase
-
Lib3MF_double GetMinLength()
Returns the minimal length of beams for the beamlattice.
- Returns:
minimal length of beams for the beamlattice
-
void SetMinLength(const Lib3MF_double dMinLength)
Sets the minimal length of beams for the beamlattice.
- Parameters:
dMinLength – minimal length of beams for the beamlattice
-
void GetClipping(eBeamLatticeClipMode &eClipMode, Lib3MF_uint32 &nUniqueResourceID)
Returns the clipping mode and the clipping-mesh for the beamlattice of this mesh.
- Parameters:
eClipMode – contains the clip mode of this mesh
nUniqueResourceID – filled with the UniqueResourceID of the clipping mesh-object or an undefined value if pClipMode is MODELBEAMLATTICECLIPMODE_NONE
-
void SetClipping(const eBeamLatticeClipMode eClipMode, const Lib3MF_uint32 nUniqueResourceID)
Sets the clipping mode and the clipping-mesh for the beamlattice of this mesh.
- Parameters:
eClipMode – contains the clip mode of this mesh
nUniqueResourceID – the UniqueResourceID of the clipping mesh-object. This mesh-object has to be defined before setting the Clipping.
-
bool GetRepresentation(Lib3MF_uint32 &nUniqueResourceID)
Returns the representation-mesh for the beamlattice of this mesh.
- Returns:
flag whether the beamlattice has a representation mesh.
- Parameters:
nUniqueResourceID – filled with the UniqueResourceID of the clipping mesh-object.
-
void SetRepresentation(const Lib3MF_uint32 nUniqueResourceID)
Sets the representation-mesh for the beamlattice of this mesh.
- Parameters:
nUniqueResourceID – the UniqueResourceID of the representation mesh-object. This mesh-object has to be defined before setting the representation.
-
void GetBallOptions(eBeamLatticeBallMode &eBallMode, Lib3MF_double &dBallRadius)
Returns the ball mode and the default ball radius for the beamlattice of this mesh.
- Parameters:
eBallMode – contains the ball mode of this mesh
dBallRadius – default ball radius of balls for the beamlattice
-
void SetBallOptions(const eBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius)
Sets the ball mode and thedefault ball radius for the beamlattice.
- Parameters:
eBallMode – contains the ball mode of this mesh
dBallRadius – default ball radius of balls for the beamlattice
-
Lib3MF_uint32 GetBeamCount()
Returns the beam count of a mesh object.
- Returns:
filled with the beam count.
-
sBeam GetBeam(const Lib3MF_uint32 nIndex)
Returns indices, radii and capmodes of a single beam of a mesh object.
- Parameters:
nIndex – Index of the beam (0 to beamcount - 1).
- Returns:
filled with the beam indices, radii and capmodes.
-
Lib3MF_uint32 AddBeam(const sBeam &BeamInfo)
Adds a single beam to a mesh object.
- Parameters:
BeamInfo – contains the node indices, radii and capmodes.
- Returns:
filled with the new Index of the beam.
-
void SetBeam(const Lib3MF_uint32 nIndex, const sBeam &BeamInfo)
Sets the indices, radii and capmodes of a single beam of a mesh object.
- Parameters:
nIndex – Index of the beam (0 to beamcount - 1).
BeamInfo – filled with the beam indices, radii and capmodes.
-
void SetBeams(const CInputVector<sBeam> &BeamInfoBuffer)
Sets all beam indices, radii and capmodes of a mesh object.
- Parameters:
BeamInfoBuffer – contains information of a number of beams
-
void GetBeams(std::vector<sBeam> &BeamInfoBuffer)
obtains all beam indices, radii and capmodes of a mesh object.
- Parameters:
BeamInfoBuffer – contains information of all beams
-
Lib3MF_uint32 GetBallCount()
Returns the ball count of a mesh object.
- Returns:
filled with the ball count.
-
sBall GetBall(const Lib3MF_uint32 nIndex)
Returns index and radius of a single ball of a mesh object.
- Parameters:
nIndex – Index of the ball (0 to ballcount - 1).
- Returns:
filled with the ball node index and radius.
-
Lib3MF_uint32 AddBall(const sBall &BallInfo)
Adds a single ball to a mesh object.
- Parameters:
BallInfo – contains the node index and radius.
- Returns:
filled with the new Index of the ball.
-
void SetBall(const Lib3MF_uint32 nIndex, const sBall &BallInfo)
Sets the index and radius of a single ball of a mesh object.
- Parameters:
nIndex – Index of the ball (0 to ballcount - 1).
BallInfo – filled with the ball node index and radius.
-
void SetBalls(const CInputVector<sBall> &BallInfoBuffer)
Sets all ball indices and radii of a mesh object.
- Parameters:
BallInfoBuffer – contains information of a number of balls
-
void GetBalls(std::vector<sBall> &BallInfoBuffer)
obtains all ball indices and radii of a mesh object.
- Parameters:
BallInfoBuffer – contains information of all balls
-
Lib3MF_uint32 GetBeamSetCount()
Returns the number of beamsets of a mesh object.
- Returns:
filled with the beamset count.
-
PBeamSet GetBeamSet(const Lib3MF_uint32 nIndex)
Returns a beamset of a mesh object
- Parameters:
nIndex – index of the requested beamset (0 … beamsetcount-1).
- Returns:
the requested beamset
-
Lib3MF_double GetMinLength()
-
typedef std::shared_ptr<CBeamLattice> Lib3MF::PBeamLattice
Shared pointer to CBeamLattice to easily allow reference counting.