public sealed class Cage : IStorable, IEquatable<Cage>
Twisted box for Grasshopper 2. It supports bezier volumes with curvature.

Constructors

Cage

#
public Cage(int uCount, int vCount, int wCount, Point3d[][] points)
Create a new twisted box.
uCount (int)Number of points in the U direction.
vCount (int)Number of points in the V direction.
wCount (int)Number of points in the W direction.
points (Point3d[][])Nested array of [uv][w] point columns.

Cage

#
public Cage(IReader reader)
reader (IReader)

Properties

Area

#
public double Area { get; }

BoundingBox

#
public BoundingBox BoundingBox { get; }

UCount

#
public int UCount { get; }
Number of points in the U direction.

VCount

#
public int VCount { get; }
Number of points in the U direction.

Volume

#
public double Volume { get; }

WCount

#
public int WCount { get; }
Number of points in the U direction.

Indexers

this[]

#
public Point3d this[int u, int v, int w] { get; }
Gets the point at the given index.
u (int)
v (int)
w (int)

Methods

Deform

#
public Cage Deform(SpaceMorph morph)
morph (SpaceMorph)

Equals

#
public bool Equals(Cage other)
other (Cage)

Equals

#
public override bool Equals(object obj)
obj (object)
Object.Equals

GetHashCode

#
public override int GetHashCode()

PointAt

#
public Point3d PointAt(double u, double v, double w)
Gets the point at the given parameters.
u (double)
v (double)
w (double)

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

ToBrep

#
public Brep ToBrep()

ToMesh

#
public Mesh ToMesh()

ToMorph

#
public CageDeform ToMorph(Box source)
source (Box)

ToNurbsSurface

#
public NurbsSurface ToNurbsSurface(int faceIndex)
faceIndex (int)

ToSingleSpanNurbs

#
public static NurbsCurve ToSingleSpanNurbs(params Point3d[] points)
Utility function for creating single span NURBS curve with uniform knot spacing out of points.
points (params Point3d[])Control points. No fewer than 2, no more than 12.

ToUCurve

#
public NurbsCurve ToUCurve(int v, int w)
Gets the curve in the volume U direction.
v (int)
w (int)

ToVCurve

#
public NurbsCurve ToVCurve(int u, int w)
Gets the curve in the volume V direction.
u (int)
w (int)

ToWCurve

#
public NurbsCurve ToWCurve(int u, int v)
Gets the curve in the volume W direction.
u (int)
v (int)

Transform

#
public Cage Transform(Transform matrix)
matrix (Transform)