Curve Collection
 
Methods Introduced:
The method wfcCollection::GetCrvCollection returns the collection of curves for the element PRO_E_STD_CURVE_COLLECTION_APPL for the specified model. Use the method wfcCollection::SetCrvCollection to set the collection of curves for the element PRO_E_STD_CURVE_COLLECTION_APPL.
The method wfcCurveCollection::Create creates a data object that contains information about the curve collection instructions.
Use the method wfcCurveCollection::GetInstructions and wfcCurveCollection::SetInstructions to get and set the instructions from the curve collection.
The method wfcCurveCollectionInstruction::Create creates a data object that contains information about the parameters set in the curve collection instructions.
The methods wfcCurveCollectionInstruction::GetAttributes and wfcCurveCollectionInstruction::SetAttributes get and set the attributes contained in a curve collection instruction.
Use the methods wfcCurveCollectionInstruction::GetReferences and wfcCurveCollectionInstruction::SetReferences to get and set the references contained in a curve collection instruction.
Use the methods wfcCurveCollectionInstruction::GetType and wfcCurveCollectionInstruction::SetType to get and set the curve collection instruction type using the enumerated type wfcCurveCollectionInstrType.
Curve collection instructions can be of the following types:
wfcCURVCOLL_EMPTY_INSTR—to be used when you do not want to pass any other instruction.
wfcCURVCOLL_ADD_ONE_INSTR—for creating "One by One" chain.
wfcCURVCOLL_TAN_INSTR—for creating "Tangent" chain.
wfcCURVCOLL_CURVE_INSTR—for creating "Curve" chain.
wfcCURVCOLL_SURF_INSTR—for creating "Surface Loop" chain.
wfcCURVCOLL_BNDRY_INSTR—for creating "Boundary Loop" chain.
wfcCURVCOLL_LOG_OBJ_INSTR—for creating "Logical Object" chain.
wfcCURVCOLL_PART_INSTR—for creating chain on all possible references, or to choose from convex or concave only.
wfcCURVCOLL_FEATURE_INSTR—for creating chain from feature curves.
wfcCURVCOLL_FROM_TO_INSTR—for creating "From-To" chain.
wfcCURVCOLL_EXCLUDE_ONE_INSTR—for excluding the entity from the chain.
wfcCURVCOLL_TRIM_INSTR—to trim chain.
wfcCURVCOLL_EXTEND_INSTR—to extend chain.
wfcCURVCOLL_START_PNT_INSTR—to set the chain start point.
wfcCURVCOLL_ADD_TANGENT_INSTR—to add all edges tangent to the ends of the chain.
wfcCURVCOLL_ADD_POINT_INSTR—to add selected point or points to the collection.
wfcCURVCOLL_OPEN_CLOSE_LOOP_INSTR—to add a closed chain that is considered as open.
wfcCURVCOLL_QUERY_INSTR—for creating “Query” chain.
wfcCURVCOLL_RESERVED_INSTR—to determine the number of instructions defined in the curve instruction.
wfcCURVCOLL_CNTR_INSTR—to add contours to the collection.
The methods wfcCurveCollectionInstruction::GetValue and wfcCurveCollectionInstruction::SetValue get and set the value of a curve collection instruction. These methods are used only for instructions of type wfcCURVCOLL_TRIM_INSTR and wfcCURVCOLL_EXTEND_INSTR.
The method wfcCrvCollectionInstrAttribute::Create creates a data object that contains information about the special attribute in curve collection instruction.
Use the method wfcCrvCollectionInstrAttribute::GetAttribute to check whether a special attribute is set for the curve collection instruction using the enumerated type wfcCurveCollectionInstrAttribute.
The curve collection instruction attributes can be of the following types:
wfcCURVCOLL_NO_ATTR—applicable when there are no attributes present.
wfcCURVCOLL_ALL—applicable for all edges.
wfcCURVCOLL_CONVEX—applicable for convex edges only.
wfcCURVCOLL_CONCAVE—applicable for concave edges only.
Use the method wfcCrvCollectionInstrAttribute::SetAttribute to set a special attribute in the curve collection instruction.
Use the method wfcCollectCurvesFilter::FilterSelections to check if the current curve selection satisfies the filter criteria. The curve selection is accepted only if the method returns True.
Was this helpful?