PK_ERROR_code_t PK_SPCURVE_create
(
--- received arguments ---
const PK_SPCURVE_sf_t *spcurve_sf, --- spcurve standard form
--- returned arguments ---
PK_SPCURVE_t *const spcurve --- spcurve
)
This function creates an spcurve from the given standard form.
Specific Errors:
PK_ERROR_unsuitable_entity `sp_curve->curve' is not a BCURVE
PK_ERROR_bad_dimension `sp_curve->curve' is not 2D
PK_ERROR_unsuitable_entity `sp_curve->curve' already underlies an
SPCURVE
PK_ERROR_invalid_geometry `sp_curve->curve' does not make a valid
spcurve when embedded in
sp_curve->surf' (SERIOUS)
If surface is owned by a part, then the spcurve will become construction
geometry of the part.
See documentation for PK_SPCURVE_sf_t.
See also PK_CURVE_embed_in_surf.