DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="2.17.0-beta3327" />

 Solid

public class Solid : Topology
public double Area { get; }

Returns the surface area -- sum of all the areas of all faces

public double Volume { get; }

Returns the total volume of the Solid

public static Solid ByJoinedSurfaces(IEnumerable<Surface> facesOfSolid)

Create a solid by specifying it's component faces as Surfaces.

public static Solid ByLoft(IEnumerable<Curve> crossSections)

Create a Solid by lofting between input cross section closed Curves.

public static Solid ByLoft(IEnumerable<Curve> crossSections, Curve guideCurve)

Create a Solid by lofting between input cross section closed Curves, with guide Curve to assist. Guide Curve must intersect all cross section Curves.

public static Solid ByLoft(IEnumerable<Curve> crossSections, IEnumerable<Curve> guideCurves)

Create a Solid by lofting between input cross section closed Curves, with guide Curves to assist. Guide Curves must intersect all cross section Curves.

public static Solid ByRevolve(Curve profile, Point axisOrigin, Vector axisDirection, double startAngle = 0, double sweepAngle = 180)

Create a Solid of revolution, sweeping the profile Curve around the axis Ray formed by the origin and the axis Vector, from the start angle in degrees to the sweep angle in degrees.

public static Solid ByRuledLoft(IEnumerable<PolyCurve> crossSections, bool checkAndRepair = true)

Create a Solid by lofting between input cross-sections comprising of closed PolyCurves. This operation is optimized for sections composed of line segments exclusively, with vertices following the same order. The check and repair option guarantees the validity of the produced solid when enabled, while disabling it should increase performance.

public static Solid BySweep(Curve profile, Curve path)

Sweep a closed Curve along a path.

public static Solid BySweep(Curve profile, Curve path, bool cutEndOff = false)

Sweep a closed Curve along a path.

public static Solid BySweep2Rails(Curve path, Curve guideRail, Curve profile)

Sweep a closed profile Curve along two rail Curves.

public static Solid ByUnion(IEnumerable<Solid> solids)

Union a collection of solids into one solid

public Point Centroid()

The centroid of the Solid

public Solid Chamfer(IEnumerable<Edge> edges, double offset)

Chamfers a Solid along input Edges with a given offset from the edge corner.

public Solid Difference(Solid other)

The boolean difference of this Solid with another

The boolean difference of this Solid and the union of input Solids

public Solid Fillet(IEnumerable<Edge> edges, double radius)

Fillets a Solid along input Edges with a given radius.

public Geometry[] ProjectInputOnto(Geometry geometryToProject, Vector projectDirection)

Projects the input Geometry onto this Solid in the input Vector direction. !!This projection method currently supports only points or curves!!

public Geometry Repair()

Attempts to repair the solid.

public Solid[] Separate()

Separates a Solid into individual Solids if it comprises more than one disjoint lump. Returns the same Solid if it is a single contiguous lump.

public Solid ThinShell(double internalFaceThickness = 1, double externalFaceThickness = 1)

Obtain a solid Shell from the Faces of this Solid

public Solid Union(Solid solid)

The boolean union of this Solid and another.

public Solid UnionAll(IEnumerable<Solid> solids)

Unions a list of Solids with this Solid.