Header menu logo Rhino.Scripting.Fsharp

AutoOpenMesh Module

This module provides functions to create or manipulate Rhino Meshes 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

RhinoScriptSyntax.MeshAddHexaFace(m, a, b, c, d, e, f)

Full Usage: RhinoScriptSyntax.MeshAddHexaFace(m, a, b, c, d, e, f)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3d - (Point3d) First vertex
    b : Point3d - (Point3d) Second vertex
    c : Point3d - (Point3d) Third vertex
    d : Point3d - (Point3d) Fourth vertex
    e : Point3d - (Point3d) Fifth vertex
    f : Point3d - (Point3d) Sixth vertex

Adds two welded quad faces to simulate a hexagon. Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Obsolete? Use built-in Ngons instead?

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3d

(Point3d) First vertex

b : Point3d

(Point3d) Second vertex

c : Point3d

(Point3d) Third vertex

d : Point3d

(Point3d) Fourth vertex

e : Point3d

(Point3d) Fifth vertex

f : Point3d

(Point3d) Sixth vertex

RhinoScriptSyntax.MeshAddLoopUnWelded(m, lns)

Full Usage: RhinoScriptSyntax.MeshAddLoopUnWelded(m, lns)

Parameters:
    m : Mesh - (Mesh) The mesh to add the faces to
    lns : ResizeArray<Line> - (ResizeArray) The list of lines forming the loop

Makes a closed loop of unwelded quads from a list of lines. Requires at least 2 lines. Uses all lines with wrapping (last line connects back to first).

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the faces to

lns : ResizeArray<Line>

(ResizeArray) The list of lines forming the loop

RhinoScriptSyntax.MeshAddLoopWelded(m, lns)

Full Usage: RhinoScriptSyntax.MeshAddLoopWelded(m, lns)

Parameters:
    m : Mesh - (Mesh) The mesh to add the faces to
    lns : ResizeArray<Line> - (ResizeArray) The list of lines forming the loop

Makes a closed loop of welded quads from a list of lines. Requires at least 3 lines. Last line is ignored; it is considered the same as the first one (e.g. coming from closed Polyline).

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the faces to

lns : ResizeArray<Line>

(ResizeArray) The list of lines forming the loop

RhinoScriptSyntax.MeshAddPentaFace(m, a, b, c, d, e)

Full Usage: RhinoScriptSyntax.MeshAddPentaFace(m, a, b, c, d, e)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3d - (Point3d) First vertex
    b : Point3d - (Point3d) Second vertex
    c : Point3d - (Point3d) Third vertex
    d : Point3d - (Point3d) Fourth vertex
    e : Point3d - (Point3d) Fifth vertex

Adds a welded quad and triangle face to simulate a pentagon. Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Obsolete? Use built-in Ngons instead?

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3d

(Point3d) First vertex

b : Point3d

(Point3d) Second vertex

c : Point3d

(Point3d) Third vertex

d : Point3d

(Point3d) Fourth vertex

e : Point3d

(Point3d) Fifth vertex

RhinoScriptSyntax.MeshAddQuadFace(m, a, b, c, d)

Full Usage: RhinoScriptSyntax.MeshAddQuadFace(m, a, b, c, d)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3f - (Point3f) First vertex
    b : Point3f - (Point3f) Second vertex
    c : Point3f - (Point3f) Third vertex
    d : Point3f - (Point3f) Fourth vertex

Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Sort points counterclockwise.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3f

(Point3f) First vertex

b : Point3f

(Point3f) Second vertex

c : Point3f

(Point3f) Third vertex

d : Point3f

(Point3f) Fourth vertex

RhinoScriptSyntax.MeshAddQuadFace(m, a, b, c, d)

Full Usage: RhinoScriptSyntax.MeshAddQuadFace(m, a, b, c, d)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3d - (Point3d) First vertex
    b : Point3d - (Point3d) Second vertex
    c : Point3d - (Point3d) Third vertex
    d : Point3d - (Point3d) Fourth vertex

Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Sort points counterclockwise.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3d

(Point3d) First vertex

b : Point3d

(Point3d) Second vertex

c : Point3d

(Point3d) Third vertex

d : Point3d

(Point3d) Fourth vertex

RhinoScriptSyntax.MeshAddQuadFace(m, l, ll)

Full Usage: RhinoScriptSyntax.MeshAddQuadFace(m, l, ll)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    l : Line - (Line) First line
    ll : Line - (Line) Second line

Adds a quad face from two lines. Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

l : Line

(Line) First line

ll : Line

(Line) Second line

RhinoScriptSyntax.MeshAddQuadFaceToLastTwo(m, a, b)

Full Usage: RhinoScriptSyntax.MeshAddQuadFaceToLastTwo(m, a, b)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3d - (Point3d) First vertex of the new edge
    b : Point3d - (Point3d) Second vertex of the new edge

Appends a welded quad to last 2 vertices. Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3d

(Point3d) First vertex of the new edge

b : Point3d

(Point3d) Second vertex of the new edge

RhinoScriptSyntax.MeshAddQuadFaceToLastTwo(m, l)

Full Usage: RhinoScriptSyntax.MeshAddQuadFaceToLastTwo(m, l)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    l : Line - (Line) The line defining the new edge

Appends a welded quad to last 2 vertices. Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

l : Line

(Line) The line defining the new edge

RhinoScriptSyntax.MeshAddTriaFace(m, a, b, c)

Full Usage: RhinoScriptSyntax.MeshAddTriaFace(m, a, b, c)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3f - (Point3f) First vertex
    b : Point3f - (Point3f) Second vertex
    c : Point3f - (Point3f) Third vertex

Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Sort points counterclockwise.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3f

(Point3f) First vertex

b : Point3f

(Point3f) Second vertex

c : Point3f

(Point3f) Third vertex

RhinoScriptSyntax.MeshAddTriaFace(m, a, b, c)

Full Usage: RhinoScriptSyntax.MeshAddTriaFace(m, a, b, c)

Parameters:
    m : Mesh - (Mesh) The mesh to add the face to
    a : Point3d - (Point3d) First vertex
    b : Point3d - (Point3d) Second vertex
    c : Point3d - (Point3d) Third vertex

Call Mesh.Normals.ComputeNormals() and Mesh.Compact() after adding the faces. Sort points counterclockwise.

Extended Type: RhinoScriptSyntax

m : Mesh

(Mesh) The mesh to add the face to

a : Point3d

(Point3d) First vertex

b : Point3d

(Point3d) Second vertex

c : Point3d

(Point3d) Third vertex

Type something to start searching.