Skip to content

DiGi.Rhino.Geometry.Spatial

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Rhino.Geometry.Spatial Namespace

Classes

Convert Class

public static class Convert

Inheritance System.Object → Convert

Methods

Convert.ToDiGi(this Curve, double) Method

Converts a Rhino Rhino.Geometry.Curve to a DiGi DiGi.Geometry.Spatial.Interfaces.ICurve3D.

public static DiGi.Geometry.Spatial.Interfaces.ICurve3D? ToDiGi(this Curve? curve, double tolerance=1E-06);

Parameters

curve Rhino.Geometry.Curve

The Rhino curve to convert.

tolerance System.Double

The distance tolerance used for geometric evaluations. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

DiGi.Geometry.Spatial.Interfaces.ICurve3D
A DiGi DiGi.Geometry.Spatial.Interfaces.ICurve3D instance if the conversion is successful; otherwise, null.

Exceptions

System.NotImplementedException
Thrown when the specific curve type is not yet supported for conversion.

Convert.ToDiGi(this Ellipse) Method

Converts a Rhino geometry ellipse to a DiGi spatial ellipse (DiGi.Geometry.Spatial.Classes.Ellipse3D).

public static DiGi.Geometry.Spatial.Classes.Ellipse3D? ToDiGi(this Ellipse ellipse);

Parameters

ellipse Rhino.Geometry.Ellipse

The Rhino ellipse instance to convert.

Returns

DiGi.Geometry.Spatial.Classes.Ellipse3D
A DiGi.Geometry.Spatial.Classes.Ellipse3D object if the input ellipse is valid; otherwise, null.

Convert.ToDiGi(this IGH_GeometricGoo, double) Method

Converts a Grasshopper Grasshopper.Kernel.Types.IGH_GeometricGoo object to a DiGi DiGi.Geometry.Spatial.Interfaces.IGeometry3D representation.

public static DiGi.Geometry.Spatial.Interfaces.IGeometry3D? ToDiGi(this IGH_GeometricGoo? geometricGoo, double tolerance=1E-06);

Parameters

geometricGoo Grasshopper.Kernel.Types.IGH_GeometricGoo

The Grasshopper geometric goo object to convert.

tolerance System.Double

The tolerance used for geometric operations and conversions. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

DiGi.Geometry.Spatial.Interfaces.IGeometry3D
An DiGi.Geometry.Spatial.Interfaces.IGeometry3D instance if the conversion is successful; otherwise, null.

Convert.ToDiGi(this Line) Method

Converts a Rhino.Geometry.Line to a DiGi.Geometry.Spatial.Classes.Segment3D.

public static DiGi.Geometry.Spatial.Classes.Segment3D? ToDiGi(this Line line);

Parameters

line Rhino.Geometry.Line

The Rhino line to convert.

Returns

DiGi.Geometry.Spatial.Classes.Segment3D
A DiGi.Geometry.Spatial.Classes.Segment3D representation of the line, or null if the line is invalid.

Convert.ToDiGi(this LineCurve) Method

Converts a Rhino.Geometry.LineCurve to a DiGi.Geometry.Spatial.Classes.Segment3D.

public static DiGi.Geometry.Spatial.Classes.Segment3D? ToDiGi(this LineCurve lineCurve);

Parameters

lineCurve Rhino.Geometry.LineCurve

The Rhino line curve to convert.

Returns

DiGi.Geometry.Spatial.Classes.Segment3D
A DiGi.Geometry.Spatial.Classes.Segment3D representation of the line curve, or null if the input is null.

Convert.ToDiGi(this Mesh) Method

Converts a Rhino Rhino.Geometry.Mesh to a DiGi DiGi.Geometry.Spatial.Classes.Mesh3D.

public static DiGi.Geometry.Spatial.Classes.Mesh3D? ToDiGi(this Mesh? mesh);

Parameters

mesh Rhino.Geometry.Mesh

The Rhino mesh to convert.

Returns

DiGi.Geometry.Spatial.Classes.Mesh3D
A DiGi.Geometry.Spatial.Classes.Mesh3D instance if the conversion is successful; otherwise, null.

Convert.ToDiGi(this Plane) Method

Converts a Rhino Plane to a DiGi Plane.

public static DiGi.Geometry.Spatial.Classes.Plane? ToDiGi(this Plane plane);

Parameters

plane Rhino.Geometry.Plane

The Rhino plane to convert.

Returns

DiGi.Geometry.Spatial.Classes.Plane
A new DiGi.Geometry.Spatial.Classes.Plane instance if the provided plane is valid; otherwise, null.

Convert.ToDiGi(this Point3d) Method

Converts a Rhino Point3d to a DiGi Point3D.

public static DiGi.Geometry.Spatial.Classes.Point3D? ToDiGi(this Point3d point3d);

Parameters

point3d Rhino.Geometry.Point3d

The Rhino Point3d instance to convert.

Returns

DiGi.Geometry.Spatial.Classes.Point3D
A DiGi.Geometry.Spatial.Classes.Point3D if the input point is valid; otherwise, null.

Convert.ToDiGi(this Point3f) Method

Converts a Rhino Point3f to a DiGi Point3D.

public static DiGi.Geometry.Spatial.Classes.Point3D? ToDiGi(this Point3f point3f);

Parameters

point3f Rhino.Geometry.Point3f

The Rhino Point3f instance to convert.

Returns

DiGi.Geometry.Spatial.Classes.Point3D
A DiGi.Geometry.Spatial.Classes.Point3D if the input point is valid; otherwise, null.

Convert.ToDiGi(this PolyCurve, double) Method

Converts a Rhino Rhino.Geometry.PolyCurve to a DiGi DiGi.Geometry.Spatial.Interfaces.ICurve3D.

public static DiGi.Geometry.Spatial.Interfaces.ICurve3D? ToDiGi(this PolyCurve? polyCurve, double tolerance=1E-06);

Parameters

polyCurve Rhino.Geometry.PolyCurve

The Rhino polycurve to convert.

tolerance System.Double

The distance tolerance used for geometric evaluations. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

DiGi.Geometry.Spatial.Interfaces.ICurve3D
A DiGi DiGi.Geometry.Spatial.Interfaces.ICurve3D instance (such as DiGi.Geometry.Spatial.Classes.Polyline3D or DiGi.Geometry.Spatial.Classes.Polygon3D) if the conversion is successful; otherwise, null.

Exceptions

System.NotImplementedException
Thrown when the polycurve contains non-linear segments that are not supported.

Convert.ToDiGi(this Polyline) Method

Converts a Rhino Geometry Polyline to a DiGi Polyline3D.

public static DiGi.Geometry.Spatial.Classes.Polyline3D? ToDiGi(this Polyline? polyline);

Parameters

polyline Rhino.Geometry.Polyline

The Rhino polyline instance to convert.

Returns

DiGi.Geometry.Spatial.Classes.Polyline3D
A new DiGi.Geometry.Spatial.Classes.Polyline3D instance if the input is valid and not null; otherwise, null.

Convert.ToDiGi(this Rectangle3d) Method

Converts a Rhino Rhino.Geometry.Rectangle3d to a DiGi DiGi.Geometry.Spatial.Classes.Rectangle3D.

public static DiGi.Geometry.Spatial.Classes.Rectangle3D? ToDiGi(this Rectangle3d rectangle3D);

Parameters

rectangle3D Rhino.Geometry.Rectangle3d

The Rhino rectangle to convert.

Returns

DiGi.Geometry.Spatial.Classes.Rectangle3D
A DiGi.Geometry.Spatial.Classes.Rectangle3D instance if the input rectangle is valid; otherwise, null.

Convert.ToDiGi(this Vector3d) Method

Converts a Rhino Rhino.Geometry.Vector3d to a DiGi DiGi.Geometry.Spatial.Classes.Vector3D.

public static DiGi.Geometry.Spatial.Classes.Vector3D? ToDiGi(this Vector3d vector3d);

Parameters

vector3d Rhino.Geometry.Vector3d

The Rhino vector to convert.

Returns

DiGi.Geometry.Spatial.Classes.Vector3D
A DiGi.Geometry.Spatial.Classes.Vector3D instance if the input vector is valid; otherwise, null.

Convert.ToDiGi_PolygonalFace3D(this BrepFace, double) Method

Converts a Rhino Rhino.Geometry.BrepFace to a DiGi.Geometry.Spatial.Classes.PolygonalFace3D.

public static DiGi.Geometry.Spatial.Classes.PolygonalFace3D? ToDiGi_PolygonalFace3D(this BrepFace? brepFace, double tolerance=1E-06);

Parameters

brepFace Rhino.Geometry.BrepFace

The Rhino BrepFace to convert.

tolerance System.Double

The tolerance used for geometric operations and planarity checks. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

DiGi.Geometry.Spatial.Classes.PolygonalFace3D
A DiGi.Geometry.Spatial.Classes.PolygonalFace3D if the face is valid, planar, and consists of polygonal loops; otherwise, null.

Convert.ToDiGi_Polyhedron(this Brep, double) Method

Converts a Rhino Rhino.Geometry.Brep to a DiGi.Geometry.Spatial.Classes.Polyhedron.

public static DiGi.Geometry.Spatial.Classes.Polyhedron? ToDiGi_Polyhedron(this Brep? brep, double tolerance=1E-06);

Parameters

brep Rhino.Geometry.Brep

The Rhino.Geometry.Brep instance to convert.

tolerance System.Double

The tolerance used for planarity checks and conversion. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

DiGi.Geometry.Spatial.Classes.Polyhedron
A DiGi.Geometry.Spatial.Classes.Polyhedron if the Brep is valid, solid, and consists of planar faces; otherwise, null.

Convert.ToGrasshopper(this Ellipsoid) Method

Converts an ellipsoid to a Grasshopper Brep.

public static GH_Brep? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to convert.

Returns

Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the ellipsoid, or null if the input is null.

Convert.ToGrasshopper(this Mesh3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Mesh3D instance to a Grasshopper Grasshopper.Kernel.Types.GH_Mesh.

public static GH_Mesh? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Mesh3D? mesh3D);

Parameters

mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D

The DiGi.Geometry.Spatial.Classes.Mesh3D object to convert.

Returns

Grasshopper.Kernel.Types.GH_Mesh
A Grasshopper.Kernel.Types.GH_Mesh representation of the mesh, or null if the provided mesh3D is null.

Convert.ToGrasshopper(this Point3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Point3D to a Grasshopper Grasshopper.Kernel.Types.GH_Point.

public static GH_Point? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);

Parameters

point3D DiGi.Geometry.Spatial.Classes.Point3D

The 3D point to convert.

Returns

Grasshopper.Kernel.Types.GH_Point
A Grasshopper.Kernel.Types.GH_Point if the provided point is not null; otherwise, null.

Convert.ToGrasshopper(this PolygonalFace3D, double) Method

Converts a planar polygonal face to a Grasshopper Brep.

public static GH_Brep? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.PolygonalFace3D? polygonalFace3D, double tolerance=1E-06);

Parameters

polygonalFace3D DiGi.Geometry.Spatial.Classes.PolygonalFace3D

The polygonal face to convert.

tolerance System.Double

The distance tolerance used for the conversion.

Returns

Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the polygonal face, or null if the input is null.

Convert.ToGrasshopper(this Polyhedron, double) Method

Converts a polyhedron to a Grasshopper Brep.

public static GH_Brep? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron, double tolerance=1E-06);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to convert.

tolerance System.Double

The distance tolerance used for the conversion.

Returns

Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the polyhedron, or null if the input is null.

Convert.ToGrasshopper(this Polyline3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Polyline3D to a Grasshopper Grasshopper.Kernel.Types.GH_Curve.

public static GH_Curve? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Polyline3D? polyline3D);

Parameters

polyline3D DiGi.Geometry.Spatial.Classes.Polyline3D

The 3D polyline to convert.

Returns

Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the polyline, or null if the input is null.

Convert.ToGrasshopper(this Rectangle3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Rectangle3D instance to a Grasshopper Grasshopper.Kernel.Types.GH_Rectangle.

public static GH_Rectangle? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Rectangle3D? rectangle3D);

Parameters

rectangle3D DiGi.Geometry.Spatial.Classes.Rectangle3D

The three-dimensional rectangle to convert.

Returns

Grasshopper.Kernel.Types.GH_Rectangle
A Grasshopper.Kernel.Types.GH_Rectangle representation of the input, or null if the provided rectangle3D is null.

Convert.ToGrasshopper(this Segment3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Segment3D to a Grasshopper Grasshopper.Kernel.Types.GH_Curve.

public static GH_Curve? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Segment3D? segment3D);

Parameters

segment3D DiGi.Geometry.Spatial.Classes.Segment3D

The 3D line segment to convert.

Returns

Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the segment, or null if the input is null.

Convert.ToGrasshopper(this Vector3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Vector3D to a Grasshopper Grasshopper.Kernel.Types.GH_Vector.

public static GH_Vector? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The 3D vector to convert.

Returns

Grasshopper.Kernel.Types.GH_Vector
A Grasshopper.Kernel.Types.GH_Vector instance if the input is not null; otherwise, null.

Convert.ToGrasshopper(this IGeometry3D, double) Method

Converts a 3D geometry object to its corresponding Grasshopper Goo representation.

public static IGH_Goo? ToGrasshopper(this DiGi.Geometry.Spatial.Interfaces.IGeometry3D? geometry3D, double tolerance=1E-06);

Parameters

geometry3D DiGi.Geometry.Spatial.Interfaces.IGeometry3D

The 3D geometry object to convert.

tolerance System.Double

The tolerance used for geometric operations during conversion. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

Grasshopper.Kernel.Types.IGH_Goo
An Grasshopper.Kernel.Types.IGH_Goo object representing the geometry in Grasshopper, or null if the input is null or not a supported type.

Convert.ToGrasshopper(this IPolygonal3D) Method

Converts an DiGi.Geometry.Spatial.Interfaces.IPolygonal3D to a Grasshopper Grasshopper.Kernel.Types.GH_Curve.

public static GH_Curve? ToGrasshopper(this DiGi.Geometry.Spatial.Interfaces.IPolygonal3D? polygonal3D);

Parameters

polygonal3D DiGi.Geometry.Spatial.Interfaces.IPolygonal3D

The polygonal object to convert.

Returns

Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the polygonal object, or null if the input is null.

Convert.ToRhino(this BoundingBox3D) Method

Converts a DiGi.Geometry.Spatial.Classes.BoundingBox3D to a Rhino .

public static BoundingBox ToRhino(this DiGi.Geometry.Spatial.Classes.BoundingBox3D? boundingBox3D);

Parameters

boundingBox3D DiGi.Geometry.Spatial.Classes.BoundingBox3D

The 3D bounding box to convert.

Returns

Rhino.Geometry.BoundingBox
The corresponding Rhino bounding box, or Rhino.Geometry.BoundingBox.Unset if the input is null.

Convert.ToRhino(this Ellipse3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Ellipse3D instance to a Rhino Rhino.Geometry.Ellipse.

public static Ellipse ToRhino(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to convert.

Returns

Rhino.Geometry.Ellipse
A Rhino Rhino.Geometry.Ellipse representation of the provided ellipse, or a default Rhino ellipse if the input is null or incomplete.

Convert.ToRhino(this Ellipsoid) Method

Converts an ellipsoid to a Rhino Brep.

public static Brep? ToRhino(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to convert.

Returns

Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the ellipsoid, or null if the conversion fails.

Convert.ToRhino(this Mesh3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Mesh3D to a Rhino Rhino.Geometry.Mesh.

public static Mesh? ToRhino(this DiGi.Geometry.Spatial.Classes.Mesh3D? mesh3D);

Parameters

mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D

The 3D mesh to convert.

Returns

Rhino.Geometry.Mesh
A Rhino Rhino.Geometry.Mesh instance, or null if the input mesh3D is null.

Convert.ToRhino(this Plane) Method

Converts a DiGi.Geometry.Spatial.Classes.Plane instance to its corresponding Rhino geometry plane representation.

public static Plane ToRhino(this DiGi.Geometry.Spatial.Classes.Plane plane);

Parameters

plane DiGi.Geometry.Spatial.Classes.Plane

The source plane to convert.

Returns

Rhino.Geometry.Plane
A Rhino.Geometry.Plane representing the converted plane, or Rhino.Geometry.Plane.Unset if the conversion fails or the input is null.

Convert.ToRhino(this Point3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Point3D to a Rhino Rhino.Geometry.Point3d.

public static Point3d ToRhino(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);

Parameters

point3D DiGi.Geometry.Spatial.Classes.Point3D

The 3D point to convert.

Returns

Rhino.Geometry.Point3d
The equivalent Rhino Rhino.Geometry.Point3d, or Rhino.Geometry.Point3d.Unset if the input is null.

Convert.ToRhino(this Polyhedron, double) Method

Converts a polyhedron to a Rhino Brep by joining its polygonal faces.

public static Brep? ToRhino(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron, double tolerance=1E-06);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to convert.

tolerance System.Double

The distance tolerance used for the conversion and joining process.

Returns

Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the polyhedron, or null if the conversion fails.

Convert.ToRhino(this Polyline3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Polyline3D instance to a Rhino Rhino.Geometry.PolylineCurve.

public static PolylineCurve? ToRhino(this DiGi.Geometry.Spatial.Classes.Polyline3D? polyline3D);

Parameters

polyline3D DiGi.Geometry.Spatial.Classes.Polyline3D

The polyline 3D object to convert.

Returns

Rhino.Geometry.PolylineCurve
A Rhino.Geometry.PolylineCurve representing the polyline, or null if the input is null or contains insufficient points for a curve.

Convert.ToRhino(this Rectangle3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Rectangle3D instance to a Rhino Rhino.Geometry.Rectangle3d.

public static Rectangle3d ToRhino(this DiGi.Geometry.Spatial.Classes.Rectangle3D? rectangle3D);

Parameters

rectangle3D DiGi.Geometry.Spatial.Classes.Rectangle3D

The source rectangle to convert.

Returns

Rhino.Geometry.Rectangle3d
A Rhino Rhino.Geometry.Rectangle3d representation of the input; otherwise, Rhino.Geometry.Rectangle3d.Unset if the input is null or contains invalid data.

Convert.ToRhino(this Segment3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Segment3D to a Rhino Rhino.Geometry.LineCurve.

public static LineCurve ToRhino(this DiGi.Geometry.Spatial.Classes.Segment3D segment3D);

Parameters

segment3D DiGi.Geometry.Spatial.Classes.Segment3D

The 3D line segment to convert.

Returns

Rhino.Geometry.LineCurve
A Rhino Rhino.Geometry.LineCurve representation of the segment.

Convert.ToRhino(this Vector3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Vector3D to a Rhino Rhino.Geometry.Vector3d.

public static Vector3d ToRhino(this DiGi.Geometry.Spatial.Classes.Vector3D vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The source 3D vector to convert.

Returns

Rhino.Geometry.Vector3d
A Rhino Rhino.Geometry.Vector3d representation of the input vector, or Rhino.Geometry.Vector3d.Unset if the input is null.

Convert.ToRhino(this IPolygonal3D) Method

Converts an DiGi.Geometry.Spatial.Interfaces.IPolygonal3D instance to a Rhino Rhino.Geometry.PolylineCurve.

public static PolylineCurve? ToRhino(this DiGi.Geometry.Spatial.Interfaces.IPolygonal3D? polygonal3D);

Parameters

polygonal3D DiGi.Geometry.Spatial.Interfaces.IPolygonal3D

The polygonal 3D object to convert.

Returns

Rhino.Geometry.PolylineCurve
A Rhino.Geometry.PolylineCurve representing the polygonal object, or null if the input is null or contains insufficient points for a curve.

Convert.ToRhino(this IPolygonalFace3D, double) Method

Converts a polygonal face to a Rhino Brep.

public static Brep? ToRhino(this DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? polygonalFace3D, double tolerance=1E-06);

Parameters

polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face to convert.

tolerance System.Double

The distance tolerance used for the conversion process.

Returns

Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the polygonal face, or null if the conversion fails.

Convert.ToRhino_Box(this BoundingBox3D) Method

Converts a DiGi.Geometry.Spatial.Classes.BoundingBox3D to a Rhino Rhino.Geometry.Box.

public static Box ToRhino_Box(this DiGi.Geometry.Spatial.Classes.BoundingBox3D boundingBox3D);

Parameters

boundingBox3D DiGi.Geometry.Spatial.Classes.BoundingBox3D

The 3D bounding box to convert.

Returns

Rhino.Geometry.Box
A Rhino Rhino.Geometry.Box representation of the bounding box, or Rhino.Geometry.Box.Unset if the input is null.

Convert.ToRhino_Line(this Segment3D) Method

Converts a DiGi.Geometry.Spatial.Classes.Segment3D to a Rhino Rhino.Geometry.Line.

public static Line ToRhino_Line(this DiGi.Geometry.Spatial.Classes.Segment3D segment3D);

Parameters

segment3D DiGi.Geometry.Spatial.Classes.Segment3D

The 3D line segment to convert.

Returns

Rhino.Geometry.Line
A Rhino Rhino.Geometry.Line representation of the segment.

Create Class

public static class Create

Inheritance System.Object → Create

Methods

Create.BoundingBox(this IGeometry) Method

Calculates the bounding box for the specified geometry.

public static BoundingBox BoundingBox(this DiGi.Geometry.Core.Interfaces.IGeometry? geometry);

Parameters

geometry DiGi.Geometry.Core.Interfaces.IGeometry

The geometry to calculate the bounding box for.

Returns

Rhino.Geometry.BoundingBox
A Rhino.Geometry.BoundingBox representing the bounds of the geometry, or Rhino.Geometry.BoundingBox.Unset if the geometry is null or cannot be bounded.

Create.BoundingBox(this IIntersectionResult3D) Method

Calculates the bounding box for the geometries resulting from a 3D intersection operation.

public static BoundingBox BoundingBox(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D);

Parameters

intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D

The intersection result containing the geometries.

Returns

Rhino.Geometry.BoundingBox
A Rhino.Geometry.BoundingBox encompassing all resulting geometries, or Rhino.Geometry.BoundingBox.Unset if no valid geometry is found.

Create.BoundingBox(this IEnumerable<IGeometry>) Method

Calculates the unioned bounding box for a collection of geometries.

public static BoundingBox BoundingBox(this System.Collections.Generic.IEnumerable<DiGi.Geometry.Core.Interfaces.IGeometry>? geometries);

Parameters

geometries System.Collections.Generic.IEnumerable<DiGi.Geometry.Core.Interfaces.IGeometry>

The collection of geometries to evaluate.

Returns

Rhino.Geometry.BoundingBox
A Rhino.Geometry.BoundingBox that encompasses all valid geometries in the collection, or Rhino.Geometry.BoundingBox.Unset if the collection is null or empty.

Inspect Class

public static class Inspect

Inheritance System.Object → Inspect

Methods

Inspect.A(this Ellipse3D) Method

Gets the semi-major axis length of the specified 3D ellipse.

public static GH_Number? A(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The semi-major axis length as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipse is null.

Inspect.A(this Ellipsoid) Method

Gets the length of semi-axis A of the specified ellipsoid.

public static GH_Number? A(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The length of semi-axis A as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipsoid is null.

Inspect.Area(this Triangle3D) Method

Gets the area of the specified 3D triangle as a Grasshopper.Kernel.Types.GH_Number.

public static GH_Number? Area(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The area of the triangle, or null if the triangle is null.

Inspect.B(this Ellipse3D) Method

Gets the semi-minor axis length of the specified 3D ellipse.

public static GH_Number? B(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The semi-minor axis length as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipse is null.

Inspect.B(this Ellipsoid) Method

Gets the length of semi-axis B of the specified ellipsoid.

public static GH_Number? B(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The length of semi-axis B as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipsoid is null.

Inspect.BoundingBox(this Polyhedron) Method

Retrieves the bounding box of the specified polyhedron.

public static DiGi.Rhino.Geometry.Planar.Classes.GooBoundingBox3D? BoundingBox(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to inspect.

Returns

GooBoundingBox3D
The GooBoundingBox3D representing the bounding box, or null if the polyhedron is null or no bounding box exists.

Inspect.BoundingBox(this IPolygonalFace3D) Method

Retrieves the bounding box of the specified polygonal face.

public static DiGi.Rhino.Geometry.Planar.Classes.GooBoundingBox3D? BoundingBox(this DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? polygonalFace3D);

Parameters

polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face to inspect.

Returns

GooBoundingBox3D
A GooBoundingBox3D representing the bounding box, or null if the input is null or no bounding box exists.

Inspect.C(this Ellipsoid) Method

Gets the length of semi-axis C of the specified ellipsoid.

public static GH_Number? C(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The length of semi-axis C as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipsoid is null.

Inspect.Center(this Ellipse3D) Method

Gets the center point of the specified 3D ellipse.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? Center(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to inspect.

Returns

GooPoint3D
The center point as a GooPoint3D, or null if the ellipse is null.

Inspect.Center(this Ellipsoid) Method

Gets the center point of the specified ellipsoid.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? Center(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

GooPoint3D
The center point as a GooPoint3D, or null if the ellipsoid is null.

Inspect.Centroid(this Triangle3D) Method

Gets the centroid of the specified 3D triangle as a GooPoint3D.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? Centroid(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

GooPoint3D
The centroid point of the triangle, or null if the triangle is null.

Inspect.Direction(this Ray3D) Method

Gets the direction vector of the specified ray as a GooVector3D.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooVector3D? Direction(this DiGi.Geometry.Spatial.Classes.Ray3D? ray3D);

Parameters

ray3D DiGi.Geometry.Spatial.Classes.Ray3D

The ray to inspect.

Returns

GooVector3D
A GooVector3D representing the direction, or null if the ray or its direction is null.

Inspect.DirectionA(this Ellipsoid) Method

Gets the direction vector of semi-axis A of the specified ellipsoid.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooVector3D? DirectionA(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

GooVector3D
The direction vector A as a GooVector3D, or null if the ellipsoid is null.

Inspect.DirectionB(this Ellipsoid) Method

Gets the direction vector of semi-axis B of the specified ellipsoid.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooVector3D? DirectionB(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

GooVector3D
The direction vector B as a GooVector3D, or null if the ellipsoid is null.

Inspect.DirectionC(this Ellipsoid) Method

Gets the direction vector of semi-axis C of the specified ellipsoid.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooVector3D? DirectionC(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

GooVector3D
The direction vector C as a GooVector3D, or null if the ellipsoid is null.

Inspect.FocalPoints(this Ellipse3D) Method

Gets the focal points of the specified 3D ellipse.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D>? FocalPoints(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to inspect.

Returns

System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of focal points as GooPoint3D, or null if the ellipse is null.

Inspect.FocalPoints(this Ellipsoid) Method

Gets the focal points of the specified ellipsoid.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D>? FocalPoints(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);

Parameters

ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid

The ellipsoid to inspect.

Returns

System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of focal points as GooPoint3D, or null if the ellipsoid is null.

Inspect.Geometry3Ds(this IIntersectionResult3D) Method

Extracts the 3D geometries from the specified intersection result.

public static System.Collections.IEnumerable? Geometry3Ds(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D);

Parameters

intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D

The intersection result to inspect.

Returns

System.Collections.IEnumerable
An enumerable collection of 3D geometries, or null if the intersection result is null or contains no geometries.

Inspect.InternalPoint(this Polyhedron) Method

Retrieves the internal point of the specified polyhedron.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? InternalPoint(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to inspect.

Returns

GooPoint3D
The GooPoint3D representing the internal point, or null if the polyhedron is null or no internal point exists.

Inspect.InternalPoint(this IPolygonalFace3D) Method

Retrieves the internal point of the specified polygonal face.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? InternalPoint(this DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? polygonalFace3D);

Parameters

polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face to inspect.

Returns

GooPoint3D
A GooPoint3D representing the internal point, or null if the input is null or no internal point exists.

Inspect.Length(this Triangle3D) Method

Gets the total perimeter length of the specified 3D triangle as a Grasshopper.Kernel.Types.GH_Number.

public static GH_Number? Length(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
The total length of the triangle's edges, or null if the triangle is null.

Inspect.Length(this Vector3D) Method

Gets the length of the specified vector as a GH_Number.

public static GH_Number? Length(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The Vector3D instance to measure.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the length of the vector, or null if the input vector is null.

Inspect.Mesh3D(this Polyhedron) Method

Creates a mesh representation of the specified polyhedron.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooMesh3D? Mesh3D(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to convert into a mesh.

Returns

GooMesh3D
The GooMesh3D representing the polyhedron, or null if the conversion fails or the input is null.

Inspect.Mesh3D(this IPolygonalFace3D) Method

Creates a mesh representation of the specified polygonal face.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooMesh3D? Mesh3D(this DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? polygonalFace3D);

Parameters

polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face to convert to a mesh.

Returns

GooMesh3D
A GooMesh3D representing the mesh, or null if the conversion fails or the input is null.

Inspect.Origin(this Ray3D) Method

Gets the origin point of the specified ray as a GooPoint3D.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? Origin(this DiGi.Geometry.Spatial.Classes.Ray3D? ray3D);

Parameters

ray3D DiGi.Geometry.Spatial.Classes.Ray3D

The ray to inspect.

Returns

GooPoint3D
A GooPoint3D representing the origin, or null if the ray or its origin is null.

Inspect.Plane(this Ellipse3D) Method

Gets the plane on which the specified 3D ellipse is defined.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPlane? Plane(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);

Parameters

ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D

The 3D ellipse to inspect.

Returns

GooPlane
The plane as a GooPlane, or null if the ellipse is null.

Inspect.Plane(this Triangle3D) Method

Gets the plane on which the specified 3D triangle lies as a GooPlane.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooPlane? Plane(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

GooPlane
The plane of the triangle, or null if the triangle is null.

Inspect.Points(this Mesh3D) Method

Retrieves the collection of points from the specified 3D mesh.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D>? Points(this DiGi.Geometry.Spatial.Classes.Mesh3D? mesh3D);

Parameters

mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D

The 3D mesh to extract points from.

Returns

System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of GooPoint3D objects if the mesh is not null; otherwise, null.

Inspect.Points(this Triangle3D) Method

Gets the vertices of the specified 3D triangle as a collection of GooPoint3D.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D>? Points(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of points representing the triangle's vertices, or null if the triangle is null.

Inspect.PolygonalFaces(this Polyhedron) Method

Retrieves the polygonal faces of the specified polyhedron.

public static System.Collections.IEnumerable? PolygonalFaces(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);

Parameters

polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron

The polyhedron to inspect.

Returns

System.Collections.IEnumerable
A collection of polygonal faces as GooPolygonalFace3D objects, or null if the polyhedron is null.

Inspect.Segments(this Triangle3D) Method

Gets the segments forming the perimeter of the specified 3D triangle as a collection of GooSegment3D.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooSegment3D>? Segments(this DiGi.Geometry.Spatial.Classes.Triangle3D? triangle3D);

Parameters

triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D

The 3D triangle to inspect.

Returns

System.Collections.Generic.IEnumerable<GooSegment3D>
A collection of segments representing the triangle's edges, or null if the triangle is null.

Inspect.Triangles(this Mesh3D) Method

Retrieves the collection of triangles from the specified 3D mesh.

public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Spatial.Classes.GooTriangle3D>? Triangles(this DiGi.Geometry.Spatial.Classes.Mesh3D? mesh3D);

Parameters

mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D

The 3D mesh to extract triangles from.

Returns

System.Collections.Generic.IEnumerable<GooTriangle3D>
A collection of GooTriangle3D objects if the mesh is not null; otherwise, null.

Inspect.Unit(this Vector3D) Method

Gets the unit vector of the specified vector as a GooVector3D.

public static DiGi.Rhino.Geometry.Spatial.Classes.GooVector3D? Unit(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The Vector3D instance to normalize.

Returns

GooVector3D
A GooVector3D representing the unit vector, or null if the input vector is null.

Inspect.X(this Point3D) Method

Gets the X coordinate of the specified 3D point as a Grasshopper number.

public static GH_Number? X(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);

Parameters

point3D DiGi.Geometry.Spatial.Classes.Point3D

The 3D point to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the X coordinate, or null if the point is null.

Inspect.X(this Vector3D) Method

Gets the X coordinate of the specified vector as a GH_Number.

public static GH_Number? X(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The Vector3D instance.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the X component, or null if the input vector is null.

Inspect.Y(this Point3D) Method

Gets the Y coordinate of the specified 3D point as a Grasshopper number.

public static GH_Number? Y(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);

Parameters

point3D DiGi.Geometry.Spatial.Classes.Point3D

The 3D point to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Y coordinate, or null if the point is null.

Inspect.Y(this Vector3D) Method

Gets the Y coordinate of the specified vector as a GH_Number.

public static GH_Number? Y(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The Vector3D instance.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Y component, or null if the input vector is null.

Inspect.Z(this Point3D) Method

Gets the Z coordinate of the specified 3D point as a Grasshopper number.

public static GH_Number? Z(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);

Parameters

point3D DiGi.Geometry.Spatial.Classes.Point3D

The 3D point to inspect.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Z coordinate, or null if the point is null.

Inspect.Z(this Vector3D) Method

Gets the Z coordinate of the specified vector as a GH_Number.

public static GH_Number? Z(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);

Parameters

vector3D DiGi.Geometry.Spatial.Classes.Vector3D

The Vector3D instance.

Returns

Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Z component, or null if the input vector is null.

Modify Class

public static class Modify

Inheritance System.Object → Modify

Methods

Modify.BakeGeometry(this IGeometry, RhinoDoc, ObjectAttributes, List<Guid>) Method

Bakes a geometry object into the specified Rhino document.

public static bool BakeGeometry(this DiGi.Geometry.Core.Interfaces.IGeometry? geometry, RhinoDoc? rhinoDoc, ObjectAttributes? objectAttributes, out System.Collections.Generic.List<System.Guid>? guids);

Parameters

geometry DiGi.Geometry.Core.Interfaces.IGeometry

The geometry to bake.

rhinoDoc Rhino.RhinoDoc

The target Rhino document.

objectAttributes Rhino.DocObjects.ObjectAttributes

The attributes to assign to the baked object.

guids System.Collections.Generic.List<System.Guid>

When this method returns, contains a list of GUIDs for the objects created in Rhino, or null if baking failed.

Returns

System.Boolean
True if the geometry was successfully baked; otherwise, false.

Modify.BakeGeometry(this IGeometry2D, RhinoDoc, ObjectAttributes, List<Guid>) Method

Bakes a 2D geometry object into the specified Rhino document by converting it to 3D on the World Z plane.

public static bool BakeGeometry(this DiGi.Geometry.Planar.Interfaces.IGeometry2D? geometry2D, RhinoDoc? rhinoDoc, ObjectAttributes? objectAttributes, out System.Collections.Generic.List<System.Guid>? guids);

Parameters

geometry2D DiGi.Geometry.Planar.Interfaces.IGeometry2D

The 2D geometry to bake.

rhinoDoc Rhino.RhinoDoc

The target Rhino document.

objectAttributes Rhino.DocObjects.ObjectAttributes

The attributes to assign to the baked object.

guids System.Collections.Generic.List<System.Guid>

When this method returns, contains a list of GUIDs for the objects created in Rhino, or null if baking failed.

Returns

System.Boolean
True if the geometry was successfully baked; otherwise, false.

Modify.BakeGeometry(this IGeometry3D, RhinoDoc, ObjectAttributes, List<Guid>) Method

Bakes a 3D geometry object into the specified Rhino document.

public static bool BakeGeometry(this DiGi.Geometry.Spatial.Interfaces.IGeometry3D? geometry3D, RhinoDoc? rhinoDoc, ObjectAttributes? objectAttributes, out System.Collections.Generic.List<System.Guid>? guids);

Parameters

geometry3D DiGi.Geometry.Spatial.Interfaces.IGeometry3D

The 3D geometry to bake.

rhinoDoc Rhino.RhinoDoc

The target Rhino document.

objectAttributes Rhino.DocObjects.ObjectAttributes

The attributes to assign to the baked object.

guids System.Collections.Generic.List<System.Guid>

When this method returns, contains a list of GUIDs for the objects created in Rhino, or null if baking failed.

Returns

System.Boolean
True if the geometry was successfully baked; otherwise, false.

Modify.BakeGeometry(this IIntersectionResult3D, RhinoDoc, ObjectAttributes, List<Guid>) Method

Bakes the geometries resulting from a 3D intersection into the specified Rhino document.

public static bool BakeGeometry(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D, RhinoDoc? rhinoDoc, ObjectAttributes? objectAttributes, out System.Collections.Generic.List<System.Guid>? guids);

Parameters

intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D

The result of a 3D intersection.

rhinoDoc Rhino.RhinoDoc

The target Rhino document.

objectAttributes Rhino.DocObjects.ObjectAttributes

The attributes to assign to the baked objects.

guids System.Collections.Generic.List<System.Guid>

When this method returns, contains a list of GUIDs for the objects created in Rhino, or null if baking failed.

Returns

System.Boolean
True if the intersection geometries were successfully baked; otherwise, false.

Modify.BakeGeometry<TGeometry>(this IEnumerable<TGeometry>, RhinoDoc, ObjectAttributes, List<Guid>) Method

Bakes a collection of geometry objects into the specified Rhino document.

public static bool BakeGeometry<TGeometry>(this System.Collections.Generic.IEnumerable<TGeometry>? geometries, RhinoDoc? rhinoDoc, ObjectAttributes? objectAttributes, out System.Collections.Generic.List<System.Guid>? guids)
    where TGeometry : DiGi.Geometry.Core.Interfaces.IGeometry;

Type parameters

TGeometry

The type of geometry, which must implement DiGi.Geometry.Core.Interfaces.IGeometry.

Parameters

geometries System.Collections.Generic.IEnumerable<TGeometry>

The collection of geometries to bake.

rhinoDoc Rhino.RhinoDoc

The target Rhino document.

objectAttributes Rhino.DocObjects.ObjectAttributes

The attributes to assign to the baked objects.

guids System.Collections.Generic.List<System.Guid>

When this method returns, contains a list of GUIDs for all objects created in Rhino, or null if baking failed.

Returns

System.Boolean
True if at least one geometry was successfully baked; otherwise, false.

Modify.DrawViewportMeshes(this IGeometry, GH_PreviewMeshArgs, DisplayMaterial) Method

Draws the viewport meshes for a given geometry using the provided preview arguments and material.

public static void DrawViewportMeshes(this DiGi.Geometry.Core.Interfaces.IGeometry? geometry, GH_PreviewMeshArgs? gH_PreviewMeshArgs, DisplayMaterial? displayMaterial=null);

Parameters

geometry DiGi.Geometry.Core.Interfaces.IGeometry

The geometry to draw.

gH_PreviewMeshArgs Grasshopper.Kernel.GH_PreviewMeshArgs

The Grasshopper preview mesh arguments containing pipeline information.

displayMaterial Rhino.Display.DisplayMaterial

Optional display material to use; defaults to the one provided in gH_PreviewMeshArgs.

Modify.DrawViewportMeshes(this IGeometry3D, GH_PreviewMeshArgs, DisplayMaterial) Method

Draws the viewport meshes for a given 3D geometry using the provided preview arguments and material.

public static void DrawViewportMeshes(this DiGi.Geometry.Spatial.Interfaces.IGeometry3D? geometry3D, GH_PreviewMeshArgs? gH_PreviewMeshArgs, DisplayMaterial? displayMaterial=null);

Parameters

geometry3D DiGi.Geometry.Spatial.Interfaces.IGeometry3D

The 3D geometry to draw.

gH_PreviewMeshArgs Grasshopper.Kernel.GH_PreviewMeshArgs

The Grasshopper preview mesh arguments containing pipeline information.

displayMaterial Rhino.Display.DisplayMaterial

Optional display material to use; defaults to the one provided in gH_PreviewMeshArgs.

Modify.DrawViewportMeshes(this IIntersectionResult3D, GH_PreviewMeshArgs, DisplayMaterial) Method

Draws the viewport meshes for the results of a 3D intersection using the provided preview arguments and material.

public static void DrawViewportMeshes(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D, GH_PreviewMeshArgs? gH_PreviewMeshArgs, DisplayMaterial? displayMaterial=null);

Parameters

intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D

The result of a 3D intersection operation.

gH_PreviewMeshArgs Grasshopper.Kernel.GH_PreviewMeshArgs

The Grasshopper preview mesh arguments containing pipeline information.

displayMaterial Rhino.Display.DisplayMaterial

Optional display material to use; defaults to the one provided in gH_PreviewMeshArgs.

Modify.DrawViewportMeshes<TGeometry>(this IEnumerable<TGeometry>, GH_PreviewMeshArgs, DisplayMaterial) Method

Draws the viewport meshes for a collection of geometries using the provided preview arguments and material.

public static void DrawViewportMeshes<TGeometry>(this System.Collections.Generic.IEnumerable<TGeometry>? geometries, GH_PreviewMeshArgs? gH_PreviewMeshArgs, DisplayMaterial? displayMaterial=null)
    where TGeometry : DiGi.Geometry.Core.Interfaces.IGeometry;

Type parameters

TGeometry

The type of geometry, which must implement DiGi.Geometry.Core.Interfaces.IGeometry.

Parameters

geometries System.Collections.Generic.IEnumerable<TGeometry>

An enumerable collection of geometries to draw.

gH_PreviewMeshArgs Grasshopper.Kernel.GH_PreviewMeshArgs

The Grasshopper preview mesh arguments containing pipeline information.

displayMaterial Rhino.Display.DisplayMaterial

Optional display material to use; defaults to the one provided in gH_PreviewMeshArgs.

Modify.DrawViewportWires(this IGeometry, GH_PreviewWireArgs, Color) Method

Draws the wire representation of a geometry in the Rhino viewport.

public static void DrawViewportWires(this DiGi.Geometry.Core.Interfaces.IGeometry? geometry, GH_PreviewWireArgs? gH_PreviewWireArgs, System.Drawing.Color color);

Parameters

geometry DiGi.Geometry.Core.Interfaces.IGeometry

The geometry to draw.

gH_PreviewWireArgs Grasshopper.Kernel.GH_PreviewWireArgs

The Grasshopper preview wire arguments providing the drawing pipeline.

color System.Drawing.Color

The color used for drawing.

Modify.DrawViewportWires(this IGeometry2D, GH_PreviewWireArgs, Color) Method

Draws the wire representation of a 2D geometry in the Rhino viewport by converting it to 3D on the World Z plane.

public static void DrawViewportWires(this DiGi.Geometry.Planar.Interfaces.IGeometry2D? geometry2D, GH_PreviewWireArgs? gH_PreviewWireArgs, System.Drawing.Color color);

Parameters

geometry2D DiGi.Geometry.Planar.Interfaces.IGeometry2D

The 2D geometry to draw.

gH_PreviewWireArgs Grasshopper.Kernel.GH_PreviewWireArgs

The Grasshopper preview wire arguments providing the drawing pipeline.

color System.Drawing.Color

The color used for drawing.

Modify.DrawViewportWires(this IGeometry3D, GH_PreviewWireArgs, Color) Method

Draws the wire representation of a 3D geometry in the Rhino viewport.

public static void DrawViewportWires(this DiGi.Geometry.Spatial.Interfaces.IGeometry3D? geometry3D, GH_PreviewWireArgs? gH_PreviewWireArgs, System.Drawing.Color color);

Parameters

geometry3D DiGi.Geometry.Spatial.Interfaces.IGeometry3D

The 3D geometry to draw.

gH_PreviewWireArgs Grasshopper.Kernel.GH_PreviewWireArgs

The Grasshopper preview wire arguments providing the drawing pipeline.

color System.Drawing.Color

The color used for drawing.

Modify.DrawViewportWires(this IIntersectionResult3D, GH_PreviewWireArgs, Color) Method

Draws the wire representations of geometries resulting from a 3D intersection in the Rhino viewport.

public static void DrawViewportWires(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D, GH_PreviewWireArgs? gH_PreviewWireArgs, System.Drawing.Color color);

Parameters

intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D

The result of a 3D intersection containing geometries to draw.

gH_PreviewWireArgs Grasshopper.Kernel.GH_PreviewWireArgs

The Grasshopper preview wire arguments providing the drawing pipeline.

color System.Drawing.Color

The color used for drawing.

Modify.DrawViewportWires<TGeometry>(this IEnumerable<TGeometry>, GH_PreviewWireArgs, Color) Method

Draws the wire representations of a collection of geometries in the Rhino viewport.

public static void DrawViewportWires<TGeometry>(this System.Collections.Generic.IEnumerable<TGeometry>? geometries, GH_PreviewWireArgs? gH_PreviewWireArgs, System.Drawing.Color color)
    where TGeometry : DiGi.Geometry.Core.Interfaces.IGeometry;

Type parameters

TGeometry

The type of geometry, which must implement IGeometry.

Parameters

geometries System.Collections.Generic.IEnumerable<TGeometry>

The collection of geometries to draw.

gH_PreviewWireArgs Grasshopper.Kernel.GH_PreviewWireArgs

The Grasshopper preview wire arguments providing the drawing pipeline.

color System.Drawing.Color

The color used for drawing.

Query Class

public static class Query

Inheritance System.Object → Query

Methods

Query.TryGetPlane(BrepFace, Plane, double) Method

Attempts to retrieve a DiGi.Geometry.Spatial.Classes.Plane from a Rhino Rhino.Geometry.BrepFace.

public static bool TryGetPlane(BrepFace? brepFace, out DiGi.Geometry.Spatial.Classes.Plane? plane, double tolerance=1E-06);

Parameters

brepFace Rhino.Geometry.BrepFace

The Brep face to analyze.

plane DiGi.Geometry.Spatial.Classes.Plane

When this method returns, contains the extracted plane if successful; otherwise, null.

tolerance System.Double

The tolerance used to determine if the face is planar. Defaults to DiGi.Core.Constants.Tolerance.Distance.

Returns

System.Boolean
True if a valid plane was successfully extracted from the face; otherwise, false.

Clone this wiki locally