M_Rhino_Geometry_Surface_ToNurbsSurface_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Surface.ToNurbsSurface Method (Double, Int32)

Gets a NURBS surface representation of this surface.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public NurbsSurface ToNurbsSurface(
	double tolerance,
	out int accuracy
)

VB

Public Function ToNurbsSurface ( 
	tolerance As Double,
	<OutAttribute> ByRef accuracy As Integer
) As NurbsSurface

Parameters

 

tolerance
Type: System.Double
tolerance to use when creating NURBS representation.
accuracy
Type: System.Int32
0 = unable to create NURBS representation with desired accuracy.

1 = success - returned NURBS parameterization matches the surface's to the desired accuracy.

2 = success - returned NURBS point locus matches the surface's to the desired accuracy and the domain of the NURBS surface is correct. However, this surface's parameterization and the NURBS surface parameterization may not match to the desired accuracy. This situation happens when getting NURBS representations of surfaces that have a transendental parameterization like spheres, cylinders, and cones.

Return Value

Type: NurbsSurface
NurbsSurface on success, null on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Surface Class
ToNurbsSurface Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️