SurfaceBroker

public static class SurfaceBroker
Represents one of several standard surface-like data types. Components which operate on or yield surface data of various kinds can use this type to avoid unnecessary casting in input or output parameters.

Methods

Cast

#
Cast an object to the correct surface type.
public static SurfaceLikeType Cast(
data,
Data to convert.
out Surface
p1,
If data is of type Surface, instance will be returned here.
out Brep
p3,
If data is of type Brep, instance will be returned here.
out SubD
p4
If data is of type SubD, instance will be returned here.
)
Type of converted data.

CastOrConvert

#
Cast or convert an object to a surface type if possible.
public static SurfaceLikeType CastOrConvert(
data,
Data to cast.
out Surface
p1,
Output in case data is a Surface.
out Brep
p3,
Output in case data is a Brep.
out SubD
p4
Output in case data is a SubD.
)
Numeric type, if any.

Convert

#
Convert an object to a surface type if possible.
public static SurfaceLikeType Convert(
data,
Data to cast.
out Surface
p1,
If data is of type Surface, instance will be returned here.
out Brep
p3,
If data is of type Brep, instance will be returned here.
out SubD
p4
If data is of type SubD, instance will be returned here.
)
Numeric type, if any.

IsSurface

#
Check whether a value is a kind of surface.
public static SurfaceLikeType IsSurface(
data
Data to check.
)
Type of surface, or None is the data is null or not a surface type.

ToBrep

#
Try to convert a surface like type to a brep.
public static Brep ToBrep(
datum
)

ToBreps

#
Try to convert a collection of surface like data into Breps.
public static IEnumerable<Brep> ToBreps()

ToNurbsSurface

#
Try to convert surface like data into an honest to goodness NURBS surface.
public static NurbsSurface ToNurbsSurface(
datum,
Surface like data to convert.
out string
warning,
Warning messahe in case the data had to be converted into Nurbs.
out string
error
Error message in case the data could not be converted into Nurbs.
)

ToSubD

#
Try to convert surface like data into an honest to goodness SubD.
public static SubD ToSubD(
datum,
Surface like data to convert.
out string
failure
Failure reason.
)

ToSurface

#
Try to convert surface like data into an honest to goodness Surface.
public static Surface ToSurface(
datum,
Surface like data to convert.
out string
failure
Failure reason.
)