M_Rhino_Geometry_Surface_GetSurfaceSize - mcneel/rhinocommon-api-docs GitHub Wiki

Surface.GetSurfaceSize Method

Gets an estimate of the size of the rectangle that would be created if the 3d surface where flattened into a rectangle.

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

Syntax

C#

public bool GetSurfaceSize(
	out double width,
	out double height
)

VB

Public Function GetSurfaceSize ( 
	<OutAttribute> ByRef width As Double,
	<OutAttribute> ByRef height As Double
) As Boolean

Parameters

 

width
Type: System.Double
corresponds to the first surface parameter.
height
Type: System.Double
corresponds to the second surface parameter.

Return Value

Type: Boolean
true if successful.

Examples

Reparameterize a surface to minimize distortion in the map from parameter space to 3d. Surface surf = ...; double width, height; if ( surf.GetSurfaceSize( out width, out height ) ) { surf.SetDomain( 0, new ON_Interval( 0.0, width ) ); surf.SetDomain( 1, new ON_Interval( 0.0, height ) ); }

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Surface Class
Rhino.Geometry Namespace

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