Class GenerateDataForChainedPlacing
Last update: 09.03.2026Namespace: VM.Managed.DAFUL.Chained
Assembly: VMDChainedBase.dll
This class generates segment`s transformation data.
public class GenerateDataForChainedPlacing
Inheritance
object ← GenerateDataForChainedPlacing
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
GenerateDataForChainedPlacing()
Initializes a new instance of the
public GenerateDataForChainedPlacing()
Fields
m_FirstCheckCrossTangent
public bool m_FirstCheckCrossTangent
Field Value
bool
Methods
Add_PathList(PathInfo)
add the PathInfo
public void Add_PathList(PathInfo path)
Parameters
path PathInfo
Path information
Add_SegmentList(SegmentInfo)
add the SegmentInfo
public void Add_SegmentList(SegmentInfo segment)
Parameters
segment SegmentInfo
Segment Information
CalculatePositionAndOrietationOfSegment(int, ref SegmentPlacingInfo[])
Calculate position and orietation of segments.
public bool CalculatePositionAndOrietationOfSegment(int _pznSegment, ref SegmentPlacingInfo[] arPlacingInfo)
Parameters
_pznSegment int
The number of segment.
arPlacingInfo SegmentPlacingInfo[]
The array including data for placing.
Returns
bool
if the position and orientation of segments are calculated successfully, it is true.
Calculate_Gap(int, ref double)
Calculate the gap.
public bool Calculate_Gap(int nTotalNoOfSegment, ref double dGap)
Parameters
nTotalNoOfSegment int
The Number of segment.
dGap double
The gap.
Returns
bool
if the gap is calculated successfully, it is true.
Calculate_NoOfSegmentAndGap(ref int, ref double)
Calculate number of segment and gap.
public bool Calculate_NoOfSegmentAndGap(ref int nSegment, ref double dGap)
Parameters
nSegment int
Number of segment.Initial value must be -1.
dGap double
The gap.
Returns
bool
if the number of segment and gap are calculated successfully, it is true.
GetNthPathInfo(int)
Gets Nth PathInfo data.
public PathInfo GetNthPathInfo(int Nth)
Parameters
Nth int
The Index.
Returns
The PathInfo.
GetNthSegmentInfo(int)
Gets Nth SegmentInfo data.
public SegmentInfo GetNthSegmentInfo(int Nth)
Parameters
Nth int
The index.
Returns
The SegmentInfo.
Initialize_PathList()
Initialize list of PathInfo
public void Initialize_PathList()
Initialize_PlacingData()
Initialize and calculate the data for cunstruction chained system.
public GenerateDataForChainedPlacing.PlacingDataResultType Initialize_PlacingData()
Returns
GenerateDataForChainedPlacing.PlacingDataResultType
true if success; otherwise, false.
Initialize_SegmentList()
Initialize list of SegmentInfo
public void Initialize_SegmentList()
Positioning_Algorithm(ref int, ref double, double, bool, int)
Called when the position and orientation of segments calculates.
public SegmentPlacingInfo[] Positioning_Algorithm(ref int _NoOfSegment, ref double _Gap, double _ErrorGapPerSegment, bool _bFixedNo, int _nIteration)
Parameters
_NoOfSegment int
The number of segment.
_Gap double
The total distance between segment and segment.
_ErrorGapPerSegment double
The average distance per segment between segment and segment.
_bFixedNo bool
true if [Fixed the number of segment]; otherwise, false
_nIteration int
The number of iteration.
Returns
The list of segment placing information.