SquisherSquishSurface Method (SquishParameters, Surface, IEnumerableGeometryBase, ListGeometryBase) |
Squish the surface into a flat brep
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.9
Syntaxpublic Brep SquishSurface(
SquishParameters sp,
Surface surface,
IEnumerable<GeometryBase> marks,
List<GeometryBase> squished_marks_out
)
Public Function SquishSurface (
sp As SquishParameters,
surface As Surface,
marks As IEnumerable(Of GeometryBase),
squished_marks_out As List(Of GeometryBase)
) As Brep
Parameters
- sp
- Type: Rhino.GeometrySquishParameters
The parameters for the squish operation - surface
- Type: Rhino.GeometrySurface
The surface to be squished - marks
- Type: System.Collections.GenericIEnumerableGeometryBase
Point, PountCloud, TextDot, and Curve objects to squish. Can be null. - squished_marks_out
- Type: System.Collections.GenericListGeometryBase
A list of the squished marks, with null entries for marks
that fail to squish. Can be null.
Return Value
Type:
BrepA brep representing the flattened surface
RemarksNB: If you are using this function from Grasshopper, which does not have a type
that can hold a trimmed surface, you will need to pass a Brep to your component and get the
face of interest from this Brep into this function. Otherwise you will lose all trimming information.
Example: `brep_out = SquishSurface(sp, brep.Faces[0], marks_in, marks_out)`
See Also