HM_ExtAPI::CreateFreeGeomLine()

Creates new free line in HyperMesh database.

Syntax

bool CreateFreeGeomLine(
HM_EntityGeomEdge& new_line,
const HM_EntityGeometryCurve& line_curve,
const double* start_param,
const double* end_param,
HM_EntityComponent comp
);

Type

HyperMesh Ext API Function

Description

Both start_param and end_param must be NULL or not NULL at the same time. If both parameters are NULL then the whole curve is used to create the line.

The function HM_ExtAPI::GeomCurveGetParameterBounds() can be used to get default parametric range of the curve.

If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

new_line
[out] - Handle to new free line object.
line_curve
[in] - Handle to curve object that was returned by previous calls to API functions.
start_param
[in] - If not NULL then points to the smaller of the two parameters that define the segment of the curve to use to create the line.
end_param
[in] - If not NULL then points to the larger of the two parameters that define the segment of the curve to use to create the line.
comp
[in] - If not NULL then component where the line is created. If NULL then the line is created in current component.

Errors

None.