AutoOpenBrep Module
This module provides functions to create or manipulate Rhino Breps/ Polysurface 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 center of cone-base or head
outerDiameter : float
-
(float) Diameter of cone base
innerDiameter : float
-
(float) Diameter of 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, 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 world XY plane
plane : Plane
-
(Plane) A plane with any orientation
height : float
-
(float) The height to extrude along the Z axis of 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 = center of hole
length : float
-
(float) total length of slotted hole
width : float
-
(float) width = radius of slotted hole
height : float
-
(float) height of 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 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 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 (= BooleanDifference), so that a single brep is returned, draws objects and zooms on them if an error occurs.
Extended Type:
|