NurbsSurface Object

Derived from: Surface Object
Defined in namespace "adsk::core" and the header file is <Core/Geometry/NurbsSurface.h>

Description

Transient NURBS surface. A transient NURBS surface is not displayed or saved in a document. A transient NURBS surface is used as a wrapper to work with raw NURBS surface information. A transient NURBS surface is bounded by it's natural boundaries and does not support the definition of arbitrary boundaries. A NURBS surface is typically obtained from a BREPFace object, which does have boundary information. They are created statically using the create method of the NurbsSurface class.

Methods

Name Description
classType Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().
copy Creates and returns an independent copy of this NurbsSurface object.
create Creates a transient NURBS surface object.
getData Gets the data that defines the NURBS surface.
set Sets the data that defines the NURBS surface.
transformBy Updates this surface by transforming it with a given input matrix.

Properties

Name Description
controlPointCountU Gets the number of control points in the U direction.
controlPointCountV Gets the number of control points in the V direction.
controlPoints Gets an array of control points from the surface.
degreeU Gets the degree in the U direction.
degreeV Gets the degree in the V direction.
evaluator Returns the surface evaluator.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
knotCountU Gets the knot count in the U direction.
knotCountV Gets thekKnot count in the V direction.
knotsU Get the knot vector from the U direction.
knotsV Get the knot vector from the V direction
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
propertiesU Gets the properties (NurbsSurfaceProperties) of the surface in the U direction.
propertiesV Gets the properties (NurbsSurfaceProperties) of the surface in the V direction.
surfaceType Returns the surface type.

Accessed From

NurbsSurface.copy, NurbsSurface.create

Version

Introduced in version August 2014