NXOpen.UF.ModlGeneral.CreateSpline

ModlGeneral.CreateSpline()

Refer to UF_MODL_create_spline for documentation.

Signature: CreateSpline(nc, kc, knot, poles)

Parameters:
  • nc (int) – Number of control vertices (poles)
  • kc (int) – Order (degree + 1)
  • knot (list of float) – Knot sequence (dimensioned to poles + order, e.g. knot[nc + kc]
  • poles (list of float) – Array homogeneous control vertices (wx,wy,wz,w) - dimensioned to (poles * 4), e.g. poles[nc * 4]
Returns:

A Tuple

Return type:

A tuple consisting of (splineId,knotFixup,poleFixup)

splineId(Tag): object identifier for the spline

knotFixup(int): Knot fixup status 0 = no fixups performed 1 = knot sequence fixed

poleFixup(int): Pole fixup status 0 = no fixups performed 1 = pole array fixed

License requirements: SOLIDS MODELING