ISurfaceGetSurfaceSize Method
Gets an estimate of the size of the rectangle that would be created
if the 3d surface where flattened into a rectangle.
Namespace: Karamba.GeometryAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
bool GetSurfaceSize(
out double width,
out double height
)
Function GetSurfaceSize (
<OutAttribute> ByRef width As Double,
<OutAttribute> ByRef height As Double
) As Boolean
bool GetSurfaceSize(
[OutAttribute] double% width,
[OutAttribute] double% height
)
abstract GetSurfaceSize :
width : float byref *
height : float byref -> bool
- width Double
- corresponds to the first surface parameter.
- height Double
- corresponds to the second surface parameter.
Booleantrue if successful.
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 ) );
}.