-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Rhino.Geometry.Spatial
public static class ConvertInheritance System.Object → Convert
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);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.
DiGi.Geometry.Spatial.Interfaces.ICurve3D
A DiGi DiGi.Geometry.Spatial.Interfaces.ICurve3D instance if the conversion is successful; otherwise, null.
System.NotImplementedException
Thrown when the specific curve type is not yet supported for conversion.
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);ellipse Rhino.Geometry.Ellipse
The Rhino ellipse instance to convert.
DiGi.Geometry.Spatial.Classes.Ellipse3D
A DiGi.Geometry.Spatial.Classes.Ellipse3D object if the input ellipse is valid; otherwise, null.
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);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.
DiGi.Geometry.Spatial.Interfaces.IGeometry3D
An DiGi.Geometry.Spatial.Interfaces.IGeometry3D instance if the conversion is successful; otherwise, null.
Converts a Rhino.Geometry.Line to a DiGi.Geometry.Spatial.Classes.Segment3D.
public static DiGi.Geometry.Spatial.Classes.Segment3D? ToDiGi(this Line line);line Rhino.Geometry.Line
The Rhino line to convert.
DiGi.Geometry.Spatial.Classes.Segment3D
A DiGi.Geometry.Spatial.Classes.Segment3D representation of the line, or null if the line is invalid.
Converts a Rhino.Geometry.LineCurve to a DiGi.Geometry.Spatial.Classes.Segment3D.
public static DiGi.Geometry.Spatial.Classes.Segment3D? ToDiGi(this LineCurve lineCurve);lineCurve Rhino.Geometry.LineCurve
The Rhino line curve to convert.
DiGi.Geometry.Spatial.Classes.Segment3D
A DiGi.Geometry.Spatial.Classes.Segment3D representation of the line curve, or null if the input is null.
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);mesh Rhino.Geometry.Mesh
The Rhino mesh to convert.
DiGi.Geometry.Spatial.Classes.Mesh3D
A DiGi.Geometry.Spatial.Classes.Mesh3D instance if the conversion is successful; otherwise, null.
Converts a Rhino Plane to a DiGi Plane.
public static DiGi.Geometry.Spatial.Classes.Plane? ToDiGi(this Plane plane);plane Rhino.Geometry.Plane
The Rhino plane to convert.
DiGi.Geometry.Spatial.Classes.Plane
A new DiGi.Geometry.Spatial.Classes.Plane instance if the provided plane is valid; otherwise, null.
Converts a Rhino Point3d to a DiGi Point3D.
public static DiGi.Geometry.Spatial.Classes.Point3D? ToDiGi(this Point3d point3d);point3d Rhino.Geometry.Point3d
The Rhino Point3d instance to convert.
DiGi.Geometry.Spatial.Classes.Point3D
A DiGi.Geometry.Spatial.Classes.Point3D if the input point is valid; otherwise, null.
Converts a Rhino Point3f to a DiGi Point3D.
public static DiGi.Geometry.Spatial.Classes.Point3D? ToDiGi(this Point3f point3f);point3f Rhino.Geometry.Point3f
The Rhino Point3f instance to convert.
DiGi.Geometry.Spatial.Classes.Point3D
A DiGi.Geometry.Spatial.Classes.Point3D if the input point is valid; otherwise, null.
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);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.
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.
System.NotImplementedException
Thrown when the polycurve contains non-linear segments that are not supported.
Converts a Rhino Geometry Polyline to a DiGi Polyline3D.
public static DiGi.Geometry.Spatial.Classes.Polyline3D? ToDiGi(this Polyline? polyline);polyline Rhino.Geometry.Polyline
The Rhino polyline instance to convert.
DiGi.Geometry.Spatial.Classes.Polyline3D
A new DiGi.Geometry.Spatial.Classes.Polyline3D instance if the input is valid and not null; otherwise, null.
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);rectangle3D Rhino.Geometry.Rectangle3d
The Rhino rectangle to convert.
DiGi.Geometry.Spatial.Classes.Rectangle3D
A DiGi.Geometry.Spatial.Classes.Rectangle3D instance if the input rectangle is valid; otherwise, null.
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);vector3d Rhino.Geometry.Vector3d
The Rhino vector to convert.
DiGi.Geometry.Spatial.Classes.Vector3D
A DiGi.Geometry.Spatial.Classes.Vector3D instance if the input vector is valid; otherwise, null.
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);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.
DiGi.Geometry.Spatial.Classes.PolygonalFace3D
A DiGi.Geometry.Spatial.Classes.PolygonalFace3D if the face is valid, planar, and consists of polygonal loops; otherwise, null.
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);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.
DiGi.Geometry.Spatial.Classes.Polyhedron
A DiGi.Geometry.Spatial.Classes.Polyhedron if the Brep is valid, solid, and consists of planar faces; otherwise, null.
Converts an ellipsoid to a Grasshopper Brep.
public static GH_Brep? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to convert.
Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the ellipsoid, or null if the input is null.
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);mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D
The DiGi.Geometry.Spatial.Classes.Mesh3D object to convert.
Grasshopper.Kernel.Types.GH_Mesh
A Grasshopper.Kernel.Types.GH_Mesh representation of the mesh, or null if the provided mesh3D is null.
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);point3D DiGi.Geometry.Spatial.Classes.Point3D
The 3D point to convert.
Grasshopper.Kernel.Types.GH_Point
A Grasshopper.Kernel.Types.GH_Point if the provided point is not null; otherwise, null.
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);polygonalFace3D DiGi.Geometry.Spatial.Classes.PolygonalFace3D
The polygonal face to convert.
tolerance System.Double
The distance tolerance used for the conversion.
Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the polygonal face, or null if the input is null.
Converts a polyhedron to a Grasshopper Brep.
public static GH_Brep? ToGrasshopper(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron, double tolerance=1E-06);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to convert.
tolerance System.Double
The distance tolerance used for the conversion.
Grasshopper.Kernel.Types.GH_Brep
A Grasshopper.Kernel.Types.GH_Brep representation of the polyhedron, or null if the input is null.
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);polyline3D DiGi.Geometry.Spatial.Classes.Polyline3D
The 3D polyline to convert.
Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the polyline, or null if the input is null.
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);rectangle3D DiGi.Geometry.Spatial.Classes.Rectangle3D
The three-dimensional rectangle to convert.
Grasshopper.Kernel.Types.GH_Rectangle
A Grasshopper.Kernel.Types.GH_Rectangle representation of the input, or null if the provided rectangle3D is null.
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);segment3D DiGi.Geometry.Spatial.Classes.Segment3D
The 3D line segment to convert.
Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the segment, or null if the input is null.
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);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The 3D vector to convert.
Grasshopper.Kernel.Types.GH_Vector
A Grasshopper.Kernel.Types.GH_Vector instance if the input is not null; otherwise, null.
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);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.
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.
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);polygonal3D DiGi.Geometry.Spatial.Interfaces.IPolygonal3D
The polygonal object to convert.
Grasshopper.Kernel.Types.GH_Curve
A Grasshopper.Kernel.Types.GH_Curve representing the polygonal object, or null if the input is null.
Converts a DiGi.Geometry.Spatial.Classes.BoundingBox3D to a Rhino .
public static BoundingBox ToRhino(this DiGi.Geometry.Spatial.Classes.BoundingBox3D? boundingBox3D);boundingBox3D DiGi.Geometry.Spatial.Classes.BoundingBox3D
The 3D bounding box to convert.
Rhino.Geometry.BoundingBox
The corresponding Rhino bounding box, or Rhino.Geometry.BoundingBox.Unset if the input is null.
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);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to convert.
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.
Converts an ellipsoid to a Rhino Brep.
public static Brep? ToRhino(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to convert.
Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the ellipsoid, or null if the conversion fails.
Converts a DiGi.Geometry.Spatial.Classes.Mesh3D to a Rhino Rhino.Geometry.Mesh.
public static Mesh? ToRhino(this DiGi.Geometry.Spatial.Classes.Mesh3D? mesh3D);mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D
The 3D mesh to convert.
Rhino.Geometry.Mesh
A Rhino Rhino.Geometry.Mesh instance, or null if the input mesh3D is null.
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);plane DiGi.Geometry.Spatial.Classes.Plane
The source plane to convert.
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.
Converts a DiGi.Geometry.Spatial.Classes.Point3D to a Rhino Rhino.Geometry.Point3d.
public static Point3d ToRhino(this DiGi.Geometry.Spatial.Classes.Point3D? point3D);point3D DiGi.Geometry.Spatial.Classes.Point3D
The 3D point to convert.
Rhino.Geometry.Point3d
The equivalent Rhino Rhino.Geometry.Point3d, or Rhino.Geometry.Point3d.Unset if the input is null.
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);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to convert.
tolerance System.Double
The distance tolerance used for the conversion and joining process.
Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the polyhedron, or null if the conversion fails.
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);polyline3D DiGi.Geometry.Spatial.Classes.Polyline3D
The polyline 3D object to convert.
Rhino.Geometry.PolylineCurve
A Rhino.Geometry.PolylineCurve representing the polyline, or null if the input is null or contains insufficient points for a curve.
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);rectangle3D DiGi.Geometry.Spatial.Classes.Rectangle3D
The source rectangle to convert.
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.
Converts a DiGi.Geometry.Spatial.Classes.Segment3D to a Rhino Rhino.Geometry.LineCurve.
public static LineCurve ToRhino(this DiGi.Geometry.Spatial.Classes.Segment3D segment3D);segment3D DiGi.Geometry.Spatial.Classes.Segment3D
The 3D line segment to convert.
Rhino.Geometry.LineCurve
A Rhino Rhino.Geometry.LineCurve representation of the segment.
Converts a DiGi.Geometry.Spatial.Classes.Vector3D to a Rhino Rhino.Geometry.Vector3d.
public static Vector3d ToRhino(this DiGi.Geometry.Spatial.Classes.Vector3D vector3D);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The source 3D vector to convert.
Rhino.Geometry.Vector3d
A Rhino Rhino.Geometry.Vector3d representation of the input vector, or Rhino.Geometry.Vector3d.Unset if the input is null.
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);polygonal3D DiGi.Geometry.Spatial.Interfaces.IPolygonal3D
The polygonal 3D object to convert.
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.
Converts a polygonal face to a Rhino Brep.
public static Brep? ToRhino(this DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? polygonalFace3D, double tolerance=1E-06);polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D
The polygonal face to convert.
tolerance System.Double
The distance tolerance used for the conversion process.
Rhino.Geometry.Brep
A Rhino Rhino.Geometry.Brep representing the polygonal face, or null if the conversion fails.
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);boundingBox3D DiGi.Geometry.Spatial.Classes.BoundingBox3D
The 3D bounding box to convert.
Rhino.Geometry.Box
A Rhino Rhino.Geometry.Box representation of the bounding box, or Rhino.Geometry.Box.Unset if the input is null.
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);segment3D DiGi.Geometry.Spatial.Classes.Segment3D
The 3D line segment to convert.
Rhino.Geometry.Line
A Rhino Rhino.Geometry.Line representation of the segment.
public static class CreateInheritance System.Object → Create
Calculates the bounding box for the specified geometry.
public static BoundingBox BoundingBox(this DiGi.Geometry.Core.Interfaces.IGeometry? geometry);geometry DiGi.Geometry.Core.Interfaces.IGeometry
The geometry to calculate the bounding box for.
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.
Calculates the bounding box for the geometries resulting from a 3D intersection operation.
public static BoundingBox BoundingBox(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D);intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D
The intersection result containing the geometries.
Rhino.Geometry.BoundingBox
A Rhino.Geometry.BoundingBox encompassing all resulting geometries, or Rhino.Geometry.BoundingBox.Unset if no valid geometry is found.
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);geometries System.Collections.Generic.IEnumerable<DiGi.Geometry.Core.Interfaces.IGeometry>
The collection of geometries to evaluate.
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.
public static class InspectInheritance System.Object → Inspect
Gets the semi-major axis length of the specified 3D ellipse.
public static GH_Number? A(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to inspect.
Grasshopper.Kernel.Types.GH_Number
The semi-major axis length as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipse is null.
Gets the length of semi-axis A of the specified ellipsoid.
public static GH_Number? A(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
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.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
Grasshopper.Kernel.Types.GH_Number
The area of the triangle, or null if the triangle is null.
Gets the semi-minor axis length of the specified 3D ellipse.
public static GH_Number? B(this DiGi.Geometry.Spatial.Classes.Ellipse3D? ellipse3D);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to inspect.
Grasshopper.Kernel.Types.GH_Number
The semi-minor axis length as a Grasshopper.Kernel.Types.GH_Number, or null if the ellipse is null.
Gets the length of semi-axis B of the specified ellipsoid.
public static GH_Number? B(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
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.
Retrieves the bounding box of the specified polyhedron.
public static DiGi.Rhino.Geometry.Planar.Classes.GooBoundingBox3D? BoundingBox(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to inspect.
GooBoundingBox3D
The GooBoundingBox3D representing the bounding box, or null if the polyhedron is null or no bounding box exists.
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);polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D
The polygonal face to inspect.
GooBoundingBox3D
A GooBoundingBox3D representing the bounding box, or null if the input is null or no bounding box exists.
Gets the length of semi-axis C of the specified ellipsoid.
public static GH_Number? C(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
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.
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);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to inspect.
GooPoint3D
The center point as a GooPoint3D, or null if the ellipse is null.
Gets the center point of the specified ellipsoid.
public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? Center(this DiGi.Geometry.Spatial.Classes.Ellipsoid? ellipsoid);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
GooPoint3D
The center point as a GooPoint3D, or null if the ellipsoid is null.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
GooPoint3D
The centroid point of the triangle, or null if the triangle is null.
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);ray3D DiGi.Geometry.Spatial.Classes.Ray3D
The ray to inspect.
GooVector3D
A GooVector3D representing the direction, or null if the ray or its direction is null.
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);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
GooVector3D
The direction vector A as a GooVector3D, or null if the ellipsoid is null.
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);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
GooVector3D
The direction vector B as a GooVector3D, or null if the ellipsoid is null.
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);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
GooVector3D
The direction vector C as a GooVector3D, or null if the ellipsoid is null.
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);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to inspect.
System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of focal points as GooPoint3D, or null if the ellipse is null.
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);ellipsoid DiGi.Geometry.Spatial.Classes.Ellipsoid
The ellipsoid to inspect.
System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of focal points as GooPoint3D, or null if the ellipsoid is null.
Extracts the 3D geometries from the specified intersection result.
public static System.Collections.IEnumerable? Geometry3Ds(this DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D? intersectionResult3D);intersectionResult3D DiGi.Geometry.Spatial.Interfaces.IIntersectionResult3D
The intersection result to inspect.
System.Collections.IEnumerable
An enumerable collection of 3D geometries, or null if the intersection result is null or contains no geometries.
Retrieves the internal point of the specified polyhedron.
public static DiGi.Rhino.Geometry.Spatial.Classes.GooPoint3D? InternalPoint(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to inspect.
GooPoint3D
The GooPoint3D representing the internal point, or null if the polyhedron is null or no internal point exists.
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);polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D
The polygonal face to inspect.
GooPoint3D
A GooPoint3D representing the internal point, or null if the input is null or no internal point exists.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
Grasshopper.Kernel.Types.GH_Number
The total length of the triangle's edges, or null if the triangle is null.
Gets the length of the specified vector as a GH_Number.
public static GH_Number? Length(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The Vector3D instance to measure.
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.
Creates a mesh representation of the specified polyhedron.
public static DiGi.Rhino.Geometry.Spatial.Classes.GooMesh3D? Mesh3D(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to convert into a mesh.
GooMesh3D
The GooMesh3D representing the polyhedron, or null if the conversion fails or the input is null.
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);polygonalFace3D DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D
The polygonal face to convert to a mesh.
GooMesh3D
A GooMesh3D representing the mesh, or null if the conversion fails or the input is null.
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);ray3D DiGi.Geometry.Spatial.Classes.Ray3D
The ray to inspect.
GooPoint3D
A GooPoint3D representing the origin, or null if the ray or its origin is null.
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);ellipse3D DiGi.Geometry.Spatial.Classes.Ellipse3D
The 3D ellipse to inspect.
GooPlane
The plane as a GooPlane, or null if the ellipse is null.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
GooPlane
The plane of the triangle, or null if the triangle is null.
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);mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D
The 3D mesh to extract points from.
System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of GooPoint3D objects if the mesh is not null; otherwise, null.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
System.Collections.Generic.IEnumerable<GooPoint3D>
A collection of points representing the triangle's vertices, or null if the triangle is null.
Retrieves the polygonal faces of the specified polyhedron.
public static System.Collections.IEnumerable? PolygonalFaces(this DiGi.Geometry.Spatial.Classes.Polyhedron? polyhedron);polyhedron DiGi.Geometry.Spatial.Classes.Polyhedron
The polyhedron to inspect.
System.Collections.IEnumerable
A collection of polygonal faces as GooPolygonalFace3D objects, or null if the polyhedron is null.
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);triangle3D DiGi.Geometry.Spatial.Classes.Triangle3D
The 3D triangle to inspect.
System.Collections.Generic.IEnumerable<GooSegment3D>
A collection of segments representing the triangle's edges, or null if the triangle is null.
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);mesh3D DiGi.Geometry.Spatial.Classes.Mesh3D
The 3D mesh to extract triangles from.
System.Collections.Generic.IEnumerable<GooTriangle3D>
A collection of GooTriangle3D objects if the mesh is not null; otherwise, null.
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);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The Vector3D instance to normalize.
GooVector3D
A GooVector3D representing the unit vector, or null if the input vector is null.
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);point3D DiGi.Geometry.Spatial.Classes.Point3D
The 3D point to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the X coordinate, or null if the point is null.
Gets the X coordinate of the specified vector as a GH_Number.
public static GH_Number? X(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The Vector3D instance.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the X component, or null if the input vector is null.
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);point3D DiGi.Geometry.Spatial.Classes.Point3D
The 3D point to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Y coordinate, or null if the point is null.
Gets the Y coordinate of the specified vector as a GH_Number.
public static GH_Number? Y(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The Vector3D instance.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Y component, or null if the input vector is null.
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);point3D DiGi.Geometry.Spatial.Classes.Point3D
The 3D point to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Z coordinate, or null if the point is null.
Gets the Z coordinate of the specified vector as a GH_Number.
public static GH_Number? Z(this DiGi.Geometry.Spatial.Classes.Vector3D? vector3D);vector3D DiGi.Geometry.Spatial.Classes.Vector3D
The Vector3D instance.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number containing the Z component, or null if the input vector is null.
public static class ModifyInheritance System.Object → Modify
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);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.
System.Boolean
True if the geometry was successfully baked; otherwise, false.
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);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.
System.Boolean
True if the geometry was successfully baked; otherwise, false.
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);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.
System.Boolean
True if the geometry was successfully baked; otherwise, false.
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);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.
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;TGeometry
The type of geometry, which must implement DiGi.Geometry.Core.Interfaces.IGeometry.
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.
System.Boolean
True if at least one geometry was successfully baked; otherwise, false.
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);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.
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);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.
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);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;TGeometry
The type of geometry, which must implement DiGi.Geometry.Core.Interfaces.IGeometry.
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.
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);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.
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);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.
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);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.
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);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.
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;TGeometry
The type of geometry, which must implement IGeometry.
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.
public static class QueryInheritance System.Object → Query
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);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.
System.Boolean
True if a valid plane was successfully extracted from the face; otherwise, false.