AutoOpenBrep Module
This module provides functions to create or manipulate Rhino Breps/Polysurfaces. This module is automatically opened when Rhino.Scripting.FSharp namespace is opened. These type extensions are only visible in F#.
Type extensions
| Type extension |
Description
|
Full Usage:
RhinoScriptSyntax.CreateCounterSunkScrewVolume(plane, outerDiameter, innerDiameter, length)
Parameters:
Plane
-
(Plane) Origin is the center of the cone-base or head
outerDiameter : float
-
(float) Diameter of the cone base
innerDiameter : float
-
(float) Diameter of the cylinder
length : float
-
(float) Total length of the screw Brep
Returns: Brep
(Brep) Brep geometry.
|
Creates a Brep in the shape of a countersunk screw hole with 45 degrees slope. A capped cone and a cylinder. One closed Polysurface.
Extended Type:
|
|
Creates a solid Brep in the shape of a cylinder. Closed with caps.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.CreateExtrusionAtPlane(curveToExtrudeInWorldXY, plane, height, extraHeightPerSide)
Parameters:
Curve
-
(Curve) A curve in the world XY plane
plane : Plane
-
(Plane) A plane with any orientation
height : float
-
(float) The height to extrude along the Z-axis of the plane
extraHeightPerSide : float
-
(float) Optional, Default Value: 0.0. Extra extension of the extrusion on both sides
Returns: Brep
(Brep) Brep geometry.
|
Transforms a planar 2D curve in XY plane to the given plane and then extrudes it with CapPlanarHoles, with optional extensions at both ends.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.CreateSlottedHoleVolume(plane, length, width, height)
Parameters:
Plane
-
(Plane) Origin is the center of the hole
length : float
-
(float) Total length of the slotted hole
width : float
-
(float) Width (diameter) of the slotted hole
height : float
-
(float) Height of the slotted hole volume
Returns: Brep
(Brep) Closed Brep geometry.
|
Creates a Brep in the shape of a slotted hole. Closed with caps.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.ExtractRenderMesh(brep, meshingParameters)
Parameters:
Brep
-
(Brep) The Polysurface to extract a Mesh from
meshingParameters : MeshingParameters
-
(MeshingParameters) Optional. The meshing parameters; if omitted the current meshing parameters are used
Returns: Result<Mesh, Mesh>
(Result |
Calls Mesh.CreateFromBrep and Mesh.HealNakedEdges() to try to ensure Mesh is closed if input is closed.
Extended Type:
|
|
If brep.SolidOrientation is inward then flip the brep.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.SubtractBrep(keep, trimmer, subtractionLocations)
Parameters:
Brep
-
(Brep) The volume to keep
trimmer : Brep
-
(Brep) The volume to cut out
subtractionLocations : int
-
(int) Optional. The number of locations where the brep is expected to be cut.
This is an optional safety check that makes it twice as slow.
It ensures that the count of breps from Brep.CreateBooleanIntersection is equal to subtractionLocations
Returns: Brep
(Brep) Brep geometry.
|
Subtracts trimmer from brep (Boolean Difference), so that a single brep is returned. Draws debug objects and zooms on them if an error occurs.
Extended Type:
|
Rhino.Scripting.Fsharp