Description:

Constructs a brep patch. This is the simple version of fit that uses a specified starting surface.

Syntax:
public static Brep CreatePatch(
IEnumerable<GeometryBase> geometry,
Surface startingSurface,
Double tolerance
)
Parameters:
  • geometry
  • Type: IEnumerable<GeometryBase>
  • Combination of Curves, BrepTrims, Points, PointClouds or Meshes. Curves and trims are sampled to get points. Trims are sampled for points and normals.
  • startingSurface
  • Type: Surface
  • A starting surface (can be null).
  • tolerance
  • Type: System.Double
  • Tolerance used by input analysis functions for loop finding, trimming, etc.
Returns:
Type: Brep
Brep fit through input on success, or None on error.
Available since:
5.0

Description:

Constructs a brep patch using all controls

Syntax:
public static Brep CreatePatch(
IEnumerable<GeometryBase> geometry,
Surface startingSurface,
Int32 uSpans,
Int32 vSpans,
Boolean trim,
Boolean tangency,
Double pointSpacing,
Double flexibility,
Double surfacePull,
Boolean[] fixEdges,
Double tolerance
)
Parameters:
  • geometry
  • Type: IEnumerable<GeometryBase>
  • A combination of Curve , brep trims, Point , PointCloud or Mesh . Curves and trims are sampled to get points. Trims are sampled for points and normals.
  • startingSurface
  • Type: Surface
  • A starting surface (can be null).
  • uSpans
  • Type: System.Int32
  • Number of surface spans used when a plane is fit through points to start in the U direction.
  • vSpans
  • Type: System.Int32
  • Number of surface spans used when a plane is fit through points to start in the U direction.
  • trim
  • Type: System.Boolean
  • If true, try to find an outer loop from among the input curves and trim the result to that loop
  • tangency
  • Type: System.Boolean
  • If true, try to find brep trims in the outer loop of curves and try to fit to the normal direction of the trim's surface at those locations.
  • pointSpacing
  • Type: System.Double
  • Basic distance between points sampled from input curves.
  • flexibility
  • Type: System.Double
  • Determines the behavior of the surface in areas where its not otherwise controlled by the input. Lower numbers make the surface behave more like a stiff material; higher, less like a stiff material. That is, each span is made to more closely match the spans adjacent to it if there is no input geometry mapping to that area of the surface when the flexibility value is low. The scale is logarithmic. Numbers around 0.001 or 0.1 make the patch pretty stiff and numbers around 10 or 100 make the surface flexible.
  • surfacePull
  • Type: System.Double
  • Tends to keep the result surface where it was before the fit in areas where there is on influence from the input geometry
  • fixEdges
  • Type: System.Boolean[]
  • Array of four elements. Flags to keep the edges of a starting (untrimmed) surface in place while fitting the interior of the surface. Order of flags is left, bottom, right, top
  • tolerance
  • Type: System.Double
  • Tolerance used by input analysis functions for loop finding, trimming, etc.
Returns:
Type: Brep
A brep fit through input on success, or None on error.
Available since:
5.0

Description:

Constructs a brep patch. This is the simple version of fit that uses a plane with u x v spans. It makes a plane by fitting to the points from the input geometry to use as the starting surface. The surface has the specified u and v span count.

Syntax:
public static Brep CreatePatch(
IEnumerable<GeometryBase> geometry,
Int32 uSpans,
Int32 vSpans,
Double tolerance
)
Parameters:
  • geometry
  • Type: IEnumerable<GeometryBase>
  • A combination of Curve , brep trims, Point , PointCloud or Mesh . Curves and trims are sampled to get points. Trims are sampled for points and normals.
  • uSpans
  • Type: System.Int32
  • The number of spans in the U direction.
  • vSpans
  • Type: System.Int32
  • The number of spans in the V direction.
  • tolerance
  • Type: System.Double
  • Tolerance used by input analysis functions for loop finding, trimming, etc.
Returns:
Type: Brep
A brep fit through input on success, or None on error.
Available since:
5.0

CreatePatch method

Class:  Rhino.Geometry.Brep

Nothing found