Click or drag to resize

SquisherSquishSurface Method (SquishParameters, Surface, IEnumerableGeometryBase, ListGeometryBase)

Squish the surface into a flat brep

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.9
Syntax
public Brep SquishSurface(
	SquishParameters sp,
	Surface surface,
	IEnumerable<GeometryBase> marks,
	List<GeometryBase> squished_marks_out
)

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: Brep
A brep representing the flattened surface
Remarks
NB: 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