[Serializable] public class SubD : GeometryBase
Subdivision surface

Constructors

SubD

#Since v7.0
Create a new instance of SubD geometry
public SubD()

SubD

#
Protected constructor used in serialization.
protected SubD()

Properties

Disposed

Indicates if this object has been disposed or the document it originally belonged to has been disposed.
public bool Disposed { get; }
inherited fromCommonObject

Edges

#Since v7.0
All edges in this SubD
public SubDEdgeList Edges { get; }

Empty

#Since v7.18
Get a new, empty SubD object.
public static SubD Empty { get; }

ErrorCount

#Since v8.36
The number of errors the SubD code has trapped since the process started.

This is a diagnostic counter, not a per-SubD property. Sample it before and after an operation to find out whether that operation hit an internal error, which usually means the SubD is not valid.

[CLSCompliant(false)] public static uint ErrorCount { get; }

Faces

#Since v7.0
All faces in this SubD
public SubDFaceList Faces { get; }

HasBrepForm

Returns true if the Brep.TryConvertBrep function will be successful for this object
public bool HasBrepForm { get; }
inherited fromGeometryBase

HasUserData

Gets true if this class has any custom information attached to it through UserData.
public bool HasUserData { get; }
inherited fromCommonObject

IsDeformable

true if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling.
public bool IsDeformable { get; }
inherited fromGeometryBase

IsDocumentControlled

If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
public sealed override bool IsDocumentControlled { get; }
inherited fromGeometryBase

IsShallowDuplicate

Is this instance a 'shallow copy'. Shallow copies are no different than regular instances with the exception that they will convert to complete independent 'deep' copies if a non const operation is perform on the instance (something that mutates the internal data)
public bool IsShallowDuplicate { get; }
inherited fromGeometryBase

IsSolid

#Since v7.0
Test SubD to see if the active level is a solid. A "solid" is a closed oriented manifold, or a closed oriented manifold.
public bool IsSolid { get; }

IsValid

Tests an object to see if it is valid.
public virtual bool IsValid { get; }
inherited fromCommonObject

ObjectType

Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on.
[CLSCompliant(false)] public ObjectType ObjectType { get; }
inherited fromGeometryBase

TextureCoordinateType

#Since v8.28
Gets the texture cordinate type.
public SubDTextureCoordinateType TextureCoordinateType { get; }

UserData

List of custom information that is attached to this class.
public UserDataList UserData { get; }
inherited fromCommonObject

UserDictionary

Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use shareable set of information.
public ArchivableDictionary UserDictionary { get; }
inherited fromCommonObject

UserStringCount

Gets the amount of user strings.
public int UserStringCount { get; }
inherited fromGeometryBase

Vertices

#Since v7.0
All vertices in this SubD
public SubDVertexList Vertices { get; }

Methods

ClearEdgeSharpness

#Since v8.36
Converts every sharp edge in this SubD to a smooth edge.
[CLSCompliant(false)] public uint ClearEdgeSharpness()
The number of edges that were changed.

ClearEvaluationCache

#Since v7.0
Clear all cached evaluation information (meshes, surface points, bounding boxes, ...) that depends on edge tags, vertex tags, and the location of vertex control points.
public void ClearEvaluationCache()

ClosestPoint

#Since v9.0
Gets the point on this SubD's surface that is closest to a test point.
[ConstOperation] public bool ClosestPoint(
testPoint,
The point to project onto this SubD.
out Point3d
closestPoint,
The closest point is returned here, or Point3d.Unset if this fails.
parameter,
The parameter of the closest point is returned here, or SubDComponentParameter.Unset if this fails.
maximumDistance
If larger than 0 and the distance from testPoint to this SubD is larger than this, then false is returned. Otherwise this is ignored.
)
True if a closest point was found.

ClosestPoint

#Since v9.0
Gets the point on this SubD's surface that is closest to a test point.
[ConstOperation] public bool ClosestPoint(
testPoint,
The point to project onto this SubD.
out Point3d
closestPoint,
The closest point is returned here, or Point3d.Unset if this fails.
parameter
The parameter of the closest point is returned here, or SubDComponentParameter.Unset if this fails. Evaluating it with Evaluate(SubDComponentParameter, Point3d) returns closestPoint.
)
Remarks: The search is refined on the surface itself, so the result is not limited to the surface mesh. The one exception is the corner of an extraordinary vertex, where the surface derivatives needed to refine are not available; there the result is the closest surface mesh point, so its accuracy is the accuracy of the surface mesh. Call UpdateSurfaceMeshCache(bool) first if you need more accuracy near extraordinary vertices.
True if a closest point was found.

ClosestPoint

#Since v9.0
Gets the point on this SubD's surface that is closest to a test point.
[ConstOperation] public Point3d ClosestPoint(
testPoint
The point to project onto this SubD.
)
The closest point, or Point3d.Unset if none was found.

ClosestPoints

#Since v9.0
Gets the points on this SubD's surface that are closest to each of a list of test points. This is faster than calling ClosestPoint(Point3d, Point3d, SubDComponentParameter) in a loop because the spatial index over the surface is built once.
[ConstOperation] public int ClosestPoints(
testPoints,
The points to project onto this SubD.
out Point3d[]
closestPoints,
One point per test point. Entries where no closest point was found are Point3d.Unset.
parameters,
One parameter per test point. Entries where no closest point was found are SubDComponentParameter.Unset.
maximumDistance
If larger than 0, test points farther than this from the SubD get no closest point. Otherwise this is ignored.
)
The number of closest points that were found.

ComponentFromComponentIndex

#Since v7.6
Returns a SubDComponent, either a SubDEdge, SubDFace, or SubDVertex, from a component index.
public SubDComponent ComponentFromComponentIndex(
componentIndex
The component index.
)
The SubDComponent if successful, null otherwise.

ComponentIndex

If this piece of geometry is a component in something larger, like a BrepEdge in a Brep, then this function returns the component index.
[ConstOperation] public ComponentIndex ComponentIndex()
inherited fromGeometryBase
This object's component index. If this object is not a sub-piece of a larger geometric entity, then the returned index has m_type = ComponentIndex.InvalidType and m_index = -1.

ConstructConstObject

Assigns a parent object and a sub-object index to this.
protected void ConstructConstObject(
parentObject,
The parent object.
subobjectIndex
The sub-object index.
)
inherited fromCommonObject

CopyEvaluationCache

#Since v8.8
Expert function that copies cached evaluations of component subdivision points and limit surface information from src to this. Typically this is done for performance critical situations like control point editing:
  • Copy a SubD to be modified (this does not copy the evaluation cache)
  • Copy the evaluation cache from the unmodified SubD
  • Modify the SubD copy
  • Update the surface mesh cache so that only the modified parts are recalculated
  • Display, meshing, bounding boxes on the modified SubD are now available
public bool CopyEvaluationCache(
in SubD
src
The SubD from which to copy cached evaluations
)
True if the cache was fully copied, false otherwise

CreateFromCylinder

#Since v7.6
Creates a SubD form of a cylinder.
[CLSCompliant(false)] public static SubD CreateFromCylinder(
cylinder,
The defining cylinder.
circumferenceFaceCount,
Number of faces around the cylinder.
heightFaceCount,
Number of faces in the top-to-bottom direction.
endCapStyle,
The end cap style.
endCapEdgeTag,
The end cap edge tag.
radiusLocation
The SubD component location.
)
A new SubD if successful, or null on failure.

CreateFromLoft

#Since v7.0
Creates a SubD lofted through shape curves.
public static SubD CreateFromLoft(
curves,
An enumeration of SubD-friendly NURBS curves to loft through.
closed,
Creates a SubD that is closed in the lofting direction. Must have three or more shape curves.
addCorners,
With open curves, adds creased vertices to the SubD at both ends of the first and last curves.
addCreases,
With kinked curves, adds creased edges to the SubD along the kinks.
divisions
The segment number between adjacent input curves.
)
Remarks: Shape curves must be in the proper order and orientation and have point counts for the desired surface. Shape curves must be either all open or all closed.
A new SubD if successful, or null on failure.

CreateFromMesh

#Since v7.0
Create a new SubD from a mesh.
public static SubD CreateFromMesh(
Mesh
mesh,
The input mesh.
options
The SubD creation options.
)
A new SubD if successful, or null on failure.

CreateFromMesh

#Since v7.0
Create a new SubD from a mesh.
public static SubD CreateFromMesh(
Mesh
mesh
The input mesh.
)
A new SubD if successful, or null on failure.

CreateFromSurface

#Since v7.9
Create a SubD that approximates the surface. If the surface is a SubD friendly NURBS surface and withCorners is true, then the SubD and input surface will have the same geometry.
public static SubD CreateFromSurface(
surface,
method,
Selects the method used to calculate the SubD.
corners
If the surface is open, then the corner vertices with be tagged as VertexTagCorner. This makes the resulting SubD have sharp corners to match the appearance of the input surface.
)

CreateFromSweep

#Since v7.0
Fits a SubD through a series of profile curves that define the SubD cross-sections and one curve that defines a SubD edge.
public static SubD CreateFromSweep(
rail1,
A SubD-friendly NURBS curve to sweep along.
shapes,
An enumeration of SubD-friendly NURBS curves to sweep through.
closed,
Creates a SubD that is closed in the rail curve direction.
addCorners,
With open curves, adds creased vertices to the SubD at both ends of the first and last curves.
roadlikeFrame,
Determines how sweep frame rotations are calculated. If false (Freeform), frame are propagated based on a reference direction taken from the rail curve curvature direction. If true (Roadlike), frame rotations are calculated based on a vector supplied in "roadlikeNormal" and the world coordinate system.
roadlikeNormal
If roadlikeFrame = true, provide 3D vector used to calculate the frame rotations for sweep shapes. If roadlikeFrame = false, then pass Vector3d.Unset.
)
Remarks: Shape curves must be in the proper order and orientation. Shape curves must have the same point counts and rail curves must have the same point counts. Shape curves will relocated to the nearest pair of Greville points on the rails. Shape curves will be made at each pair of rail edit points where there isn't an input shape.
A new SubD if successful, or null on failure.

CreateFromSweep

#Since v7.0
Fits a SubD through a series of profile curves that define the SubD cross-sections and two curves that defines SubD edges.
public static SubD CreateFromSweep(
rail1,
The first SubD-friendly NURBS curve to sweep along.
rail2,
The second SubD-friendly NURBS curve to sweep along.
shapes,
An enumeration of SubD-friendly NURBS curves to sweep through.
closed,
Creates a SubD that is closed in the rail curve direction.
addCorners
With open curves, adds creased vertices to the SubD at both ends of the first and last curves.
)
Remarks: Shape curves must be in the proper order and orientation. Shape curves must have the same point counts and rail curves must have the same point counts. Shape curves will relocated to the nearest pair of Greville points on the rails. Shape curves will be made at each pair of rail edit points where there isn't an input shape.
A new SubD if successful, or null on failure.

CreateGlobeSphere

#Since v8.4
Creates a SubD sphere made from polar triangle fans and bands of quads. The result resembles a globe with triangle fans at the poles and the edges forming latitude parallels and longitude meridians.
[CLSCompliant(false)] public static SubD CreateGlobeSphere(
sphere,
Location, size and orientation of the sphere.
vertexLocation,
If vertexLocation = SubDComponentLocation::ControlNet, then the control net points will be on the surface of the sphere. Otherwise the limit surface points will be on the sphere.
axialFaceCount,
Number of faces along the sphere's meridians. (axialFaceCount >= 2) For example, if you wanted each face to span 30 degrees of latitude, you would pass 6 (=180 degrees/30 degrees) for axialFaceCount.
equatorialFaceCount
Number of faces around the sphere's parallels. (equatorialFaceCount >= 3) For example, if you wanted each face to span 30 degrees of longitude, you would pass 12 (=360 degrees/30 degrees) for equatorialFaceCount.
)
If the input parameters are valid, a SubD globe sphere is returned. Otherwise null is returned.

CreateIcosahedron

#Since v8.4
Creates a SubD sphere based on an icosohedron (20 triangular faces and 5 valent vertices). This is a goofy topology for a Catmull-Clark subdivision surface (all triangles, all vertices have 5 edges). You may want to consider using the much behaved result from CreateSubDQuadSphere(sphere, vertexLocation, 1) or even the result from CreateSubDGlobeSphere().
[CLSCompliant(false)] public static SubD CreateIcosahedron(
sphere,
Location, size and orientation of the sphere.
vertexLocation
If vertexLocation = SubDComponentLocation::ControlNet, then the control net points will be on the surface of the sphere. Otherwise the limit surface points will be on the sphere.
)
If the input parameters are valid, a SubD icosahedron is returned. Otherwise null is returned.

CreateQuadSphere

#Since v8.4
Creates a SubD sphere made from quad faces.
[CLSCompliant(false)] public static SubD CreateQuadSphere(
sphere,
Location, size and orientation of the sphere.
vertexLocation,
If vertexLocation = SubDComponentLocation::ControlNet, then the control net points will be on the surface of the sphere. Otherwise the limit surface points will be on the sphere.
quadSubdivisionLevel
The resulting sphere will have 6*4^subdivision level quads. (0 for 6 quads, 1 for 24 quads, 2 for 96 quads, ...).
)
If the input parameters are valid, a SubD quad sphere is returned. Otherwise null is returned.

CreateSubDBox

#Since v8.36
Creates a SubD box from a Box.
[CLSCompliant(false)] public static SubD CreateSubDBox(
box,
The box to build from. It must be valid.
edgeSharpness,
The sharpness to give the edges where box sides meet. See CreateSubDBox(IEnumerable<Point3d>, double, uint, uint, uint).
faceCountX,
Number of faces in the box X direction.
faceCountY,
Number of faces in the box Y direction.
faceCountZ
Number of faces in the box Z direction.
)
A new SubD box, or null if the input is not valid.

CreateSubDBox

#Since v8.36
Creates a SubD box.
[CLSCompliant(false)] public static SubD CreateSubDBox(
corners,
The eight box corners. The first four are the bottom face, in order around it, and the last four are the top face, in the same order.
edgeSharpness,
The sharpness to give the edges where box sides meet. SubDEdgeSharpness.SmoothValue leaves them smooth and SubDEdgeSharpness.CreaseValue makes them creases.
faceCountX,
Number of faces along the first bottom edge.
faceCountY,
Number of faces along the second bottom edge.
faceCountZ
Number of faces from the bottom face to the top face.
)
A new SubD box, or null if the input is not valid.

CreateTriSphere

#Since v8.4
Creates a SubD sphere made from triangular faces. This is a goofy topology for a Catmull-Clark subdivision surface (all triangles and all vertices have 5 or 6 edges). You may want to consider using the much behaved result from CreateSubDQuadSphere() or even the result from CreateSubDGlobeSphere().
[CLSCompliant(false)] public static SubD CreateTriSphere(
sphere,
Location, size and orientation of the sphere.
vertexLocation,
If vertexLocation = SubDComponentLocation::ControlNet, then the control net points will be on the surface of the sphere. Otherwise the limit surface points will be on the sphere.
triSubdivisionLevel
The resulting sphere will have 20*4^subdivision level triangles. (0 for 20 triangles, 1 for 80 triangles, 2 for 320 triangles, ...).
)
If the input parameters are valid, a SubD tri sphere is returned. Otherwise null is returned.

DataCRC

Returns a CRC calculated from the information that defines the object. This CRC can be used as a quick way to see if two objects are not identical.
[CLSCompliant(false)] public uint DataCRC(
currentRemainder
The current remainder value.
)
inherited fromGeometryBase
CRC of the information the defines the object.

DeleteAllUserStrings

public void DeleteAllUserStrings()
inherited fromGeometryBase

DeleteComponents

#Since v8.36
Deletes components from this SubD, identified by component index.
public bool DeleteComponents(
componentIndices,
The component indices to delete.
markDeletedFaceEdges
If true, edges that survive the deletion of a face they bounded get their runtime mark set.
)
True if the deletion succeeded.

DeleteComponents

#Since v8.36
Deletes components from this SubD.

Deleting a vertex deletes every edge and face attached to it. Deleting an edge deletes every face attached to it. Deleting a face deletes only that face.

public bool DeleteComponents(
components,
The components to delete.
markDeletedFaceEdges
If true, edges that survive the deletion of a face they bounded get their runtime mark set, so the caller can find the boundary of the hole that was opened.
)
True if the deletion succeeded.

DeleteComponents

#Since v8.36
Deletes components from this SubD, leaving the edges that bounded any deleted face unmarked. See DeleteComponents(IEnumerable<SubDComponent>, bool).
public bool DeleteComponents(
components
The components to delete.
)
True if the deletion succeeded.

DeleteUserString

public bool DeleteUserString(
key
)
inherited fromGeometryBase

Dispose

Actively reclaims unmanaged resources that this instance uses.
public void Dispose()
inherited fromCommonObject

Dispose

#
Deletes the underlying native pointer during a Dispose call or GC collection
protected override void Dispose(
disposing
)

DissolveOrDeleteComponents

#Since v8.36
Dissolves or deletes components, identified by component index. See DissolveOrDeleteComponents(IEnumerable<SubDComponent>).
[CLSCompliant(false)] public uint DissolveOrDeleteComponents(
componentIndices
The component indices to dissolve or delete.
)
The number of merged faces created by dissolving edges and vertices.

DissolveOrDeleteComponents

#Since v8.36
Dissolves the given edges and vertices, merging the faces around them, and deletes the given faces.

This is the difference between removing an edge between two quads to get one bigger face, and removing the two quads to leave a hole. Use DeleteComponents(IEnumerable<SubDComponent>, bool) when a hole is what you want.

[CLSCompliant(false)] public uint DissolveOrDeleteComponents(
components
The vertices, edges and faces to dissolve or delete.
)
The number of merged faces created by dissolving edges and vertices.

Duplicate

Constructs a deep (full) copy of this object.
public virtual GeometryBase Duplicate()
inherited fromGeometryBase
An object of the same type as this, with the same properties and behavior.

DuplicateEdgeCurves

#Since v8.7
Gets Nurbs form of all edges in this SubD, with clamped knots. NB: Does not update the SubD evaluation cache before getting the edges.
[ConstOperation] public Curve[] DuplicateEdgeCurves()
An array of edge curves.

DuplicateEdgeCurves

#Since v8.7
Gets Nurbs form of edges in this SubD. NB: Does not update the SubD evaluation cache before getting the edges.
public Curve[] DuplicateEdgeCurves(
boundaryOnly,
If true, then only the boundary edges are duplicated. If false, then all edges are duplicated. If both boundaryOnly and interiorOnly are true, an empty array is returned.
interiorOnly,
If true, then only the interior edges are duplicated. If false, then all edges are duplicated. Note: interior edges with faces of different orientations are also returned. If both boundaryOnly and interiorOnly are true, an empty array is returned.
smoothOnly,
If true, then only the smooth (and not sharp) edges are duplicated. If false, then all edges are duplicated. If both smoothOnly and sharpOnly and creaseOnly are true, an empty array is returned.
sharpOnly,
If true, then only the sharp edges are duplicated. If false, then all edges are duplicated. If both smoothOnly and sharpOnly and creaseOnly are true, an empty array is returned.
creaseOnly,
If true, then only the creased edges are duplicated. If false, then all edges are duplicated. If both smoothOnly and sharpOnly and creaseOnly are true, an empty array is returned.
clampEnds
If true, the end knots are clamped. Otherwise the end knots are(-2,-1,0,...., k1, k1+1, k1+2).
)
Array of edge curves on success.

DuplicateShallow

Constructs a light copy of this object. By "light", it is meant that the same underlying data is used until something is done to attempt to change it. For example, you could have a shallow copy of a very heavy mesh object and the same underlying data will be used when doing things like inspecting the number of faces on the mesh. If you modify the location of one of the mesh vertices, the shallow copy will create a full duplicate of the underlying mesh data and the shallow copy will become a deep copy.
public GeometryBase DuplicateShallow()
inherited fromGeometryBase
An object of the same type as this object.

This behavior is overridden by implementing classes.

EnsurePrivateCopy

If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
public void EnsurePrivateCopy()
inherited fromCommonObject

Evaluate

#Since v9.0
Evaluates the location, first derivatives and unit normal of a point on this SubD's surface.
[ConstOperation] public bool Evaluate(
parameter,
The parameter to evaluate.
out Point3d
point,
The surface point is returned here, or Point3d.Unset if this fails.
ds,
The first derivative in the direction of the first face corner parameter is returned here.
dt,
The first derivative in the direction of the second face corner parameter is returned here.
normal
The unit surface normal is returned here. It is parallel to the cross product of ds and dt.
)
True if the evaluation succeeded.

Evaluate

#Since v9.0
Evaluates the location and unit normal of a point on this SubD's surface.
[ConstOperation] public bool Evaluate(
parameter,
The parameter to evaluate.
out Point3d
point,
The surface point is returned here, or Point3d.Unset if this fails.
normal
The unit surface normal is returned here, or Vector3d.Unset if this fails.
)
Remarks: The surface derivatives this needs are not available in the corner of an extraordinary vertex unless the parameter is exactly at the vertex, at the midpoint of one of its edges, or at the center of the face.
True if the evaluation succeeded.

Evaluate

#Since v9.0
Evaluates the location of a point on this SubD's surface.
[ConstOperation] public bool Evaluate(
parameter,
The parameter to evaluate.
out Point3d
point
The surface point is returned here, or Point3d.Unset if this fails.
)
True if the evaluation succeeded.

EvaluateCurvature

#Since v9.0
Evaluates the curvature of a point on this SubD's surface, choosing what to report exactly on an extraordinary vertex.
[ConstOperation] public bool EvaluateCurvature(
parameter,
The parameter to evaluate.
extraordinaryVertexCurvature,
What to report when the parameter is exactly on an extraordinary vertex, where the limit surface has no curvature of its own.
curvature
The surface curvature is returned here, or null if this fails.
)

EvaluateCurvature

#Since v9.0
Evaluates the principal curvatures of a point on this SubD's surface.
[ConstOperation] public bool EvaluateCurvature(
parameter,
The parameter to evaluate.
out Point3d
point,
The surface point is returned here, or Point3d.Unset if this fails.
normal,
The unit surface normal is returned here.
out double
kappa1,
The largest principal curvature, in absolute value, is returned here.
out double
kappa2
The smallest principal curvature, in absolute value, is returned here.
)
Remarks: This needs second order surface derivatives. They are available throughout the corner quad of an extraordinary vertex, but not exactly on such a vertex: a SubD limit surface is C1 there but generally not C2, so it has no curvature. This returns false in that case, and kappa1 and kappa2 are double.NaN.
True if the evaluation succeeded.

EvaluateCurvature

#Since v9.0
Evaluates the curvature of a point on this SubD's surface.
[ConstOperation] public bool EvaluateCurvature(
parameter,
The parameter to evaluate.
curvature
The surface curvature is returned here, or null if this fails.
)
Remarks: Unlike the overload that returns the two principal curvature values, this one also reports their directions. See SurfaceCurvature.CreateFromSubD(SubD, SubDComponentParameter) for when the curvature exists.
True if the evaluation succeeded.

Flip

#Since v8.7
Reverses the orientation of all SubD normals.
public bool Flip()
True if successful.

GetBoundingBox

Bounding box solver. Gets the world axis aligned bounding box for the geometry.
[ConstOperation] public BoundingBox GetBoundingBox(
accurate
If true, a physically accurate bounding box will be computed. If not, a bounding box estimate will be computed. For some geometry types there is no difference between the estimate and the accurate bounding box. Estimated bounding boxes can be computed much (much) faster than accurate (or "tight") bounding boxes. Estimated bounding boxes are always similar to or larger than accurate bounding boxes.
)
inherited fromGeometryBase
The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

GetBoundingBox

Aligned Bounding box solver. Gets the plane aligned bounding box.
[ConstOperation] public BoundingBox GetBoundingBox(
plane,
Orientation plane for BoundingBox.
out Box
worldBox
Aligned box in World coordinates.
)
inherited fromGeometryBase
A BoundingBox in plane coordinates.

GetBoundingBox

Aligned Bounding box solver. Gets the plane aligned bounding box.
[ConstOperation] public BoundingBox GetBoundingBox(
plane
Orientation plane for BoundingBox.
)
inherited fromGeometryBase
A BoundingBox in plane coordinates.

GetBoundingBox

Aligned Bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.
[ConstOperation] public virtual BoundingBox GetBoundingBox(
xform
Transformation to apply to object prior to the BoundingBox computation. The geometry itself is not modified.
)
inherited fromGeometryBase
The accurate bounding box of the transformed geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(
info,
The System.Runtime.Serialization.SerializationInfo to populate with data.
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
)
inherited fromCommonObject

GetUserString

Gets user string from this geometry.
public string GetUserString(
key
id used to retrieve the string.
)
inherited fromGeometryBase
string associated with the key if successful. null if no key was found.

GetUserStrings

Gets a copy of all (user key string, user value string) pairs attached to this geometry.
public NameValueCollection GetUserStrings()
inherited fromGeometryBase
A new collection.

InterpolateSurfacePoints

#Since v7.1
Modifies the SubD so that the SubD vertex limit surface points are equal to surface_points[]
public bool InterpolateSurfacePoints(
surfacePoints
Points for limit surface to interpolate. surface_points[i] is the location for the i-th vertex returned by SubVertexIterator vit(this)
)

InterpolateSurfacePoints

#Since v8.0
Modifies the SubD so that the SubD vertex limit surface points of the listed vertices are equal to surface_points[].
[CLSCompliant(false)] public bool InterpolateSurfacePoints(
uint[]
vertexIndices,
Ids of the vertices to interpolate. Other vertices remain fixed.
surfacePoints
Points for limit surface to interpolate. surface_points[i] is the location for the vertex returned by this.Vertices.Find(vertexIndices[i]).
)

IsValidWithLog

Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
public bool IsValidWithLog(
out string
log
A textual log. This out parameter is assigned during this call.
)
inherited fromCommonObject
true if this object is valid; false otherwise.

JoinSubDs

#Since v7.16
Joins an enumeration of SubDs to form as few as possible resulting SubDs. There may be more than one SubD in the result array.
public static SubD[] JoinSubDs(
subdsToJoin,
An enumeration of SubDs to join.
tolerance,
The join tolerance.
joinedEdgesAreCreases,
If true, merged boundary edges will be creases. If false, merged boundary edges will be smooth.
preserveSymmetry
If true, and if all inputs share the same symmetry, the output will also be symmetrical wrt. that symmetry. If false, or true but no common symmetry exists, symmetry information is removed from all newly joined SubDs.
)
Remarks: NOTE: All of the input SubDs are copied and added to the result array in one form or another.

JoinSubDs

#Since v7.14
Joins an enumeration of SubDs to form as few as possible resulting SubDs. There may be more than one SubD in the result array.
public static SubD[] JoinSubDs(
subdsToJoin,
An enumeration of SubDs to join.
tolerance,
The join tolerance.
joinedEdgesAreCreases
If true, merged boundary edges will be creases. If false, merged boundary edges will be smooth.
)
Remarks: NOTE: All of the input SubDs are copied and added to the result array in one form or another. NOTE: Symmetry information is removed from newly joined SubDs.See also comments in SubD.JoinSubDs with the bPreserveSymmetry parameter.

MakeDeformable

If possible, converts the object into a form that can be accurately modified with "squishy" transformations like projections, shears, an non-uniform scaling.
public bool MakeDeformable()
inherited fromGeometryBase
false if object cannot be converted to a deformable object. true if object was already deformable or was converted into a deformable object.

MemoryEstimate

Computes an estimate of the number of bytes that this object is using in memory.
[CLSCompliant(false)] [ConstOperation] public uint MemoryEstimate()
inherited fromGeometryBase
An estimated memory footprint.

MergeAllCoplanarFaces

#Since v7.9
Merges adjacent coplanar faces into single faces.
public bool MergeAllCoplanarFaces(
tolerance,
Tolerance for determining when edges are adjacent. When in doubt, use the document's ModelAbsoluteTolerance property.
angleTolerance
Angle tolerance, in radians, for determining when faces are parallel. When in doubt, use the document's ModelAngleToleranceRadians property.
)
true if faces were merged, false if no faces were merged.

MergeAllCoplanarFaces

#Since v7.9
Merges adjacent coplanar faces into single faces.
public bool MergeAllCoplanarFaces(
tolerance
Tolerance for determining when edges are adjacent. When in doubt, use the document's ModelAbsoluteTolerance property.
)
true if faces were merged, false if no faces were merged.

NonConstOperation

#
Destroy cache handle
protected override void NonConstOperation()

Offset

#Since v7.0
Makes a new SubD with vertices offset at distance in the direction of the control net vertex normals. Optionally, based on the value of solidify, adds the input SubD and a ribbon of faces along any naked edges.
[ConstOperation] public SubD Offset(
distance,
The distance to offset.
solidify
true if the output SubD should be turned into a closed SubD.
)
A new SubD if successful, or null on failure.

OnSwitchToNonConst

#
Called when this object switches from being considered "owned by the document" to being an independent instance.
protected override void OnSwitchToNonConst()

PackFaces

#Since v7.23
Resets the SubD to the default face packing if adding creases or deleting faces breaks the quad grids. It does not change the topology or geometry of the SubD. SubD face packs always stop at creases.
[CLSCompliant(false)] public uint PackFaces()
The number of face packs.

Rotate

Rotates the object about the specified axis. A positive rotation angle results in a counter-clockwise rotation about the axis (right hand rule).
public bool Rotate(
angleRadians,
Angle of rotation in radians.
rotationAxis,
Direction of the axis of rotation.
rotationCenter
Point on the axis of rotation.
)
inherited fromGeometryBase
true if geometry successfully rotated.

Scale

Scales the object by the specified factor. The scale is centered at the origin.
public bool Scale(
scaleFactor
The uniform scaling factor.
)
inherited fromGeometryBase
true if geometry successfully scaled.

SetEdgeSharpness

#Since v8.36
Sets the sharpness of a list of edges, identified by their ids.
[CLSCompliant(false)] public uint SetEdgeSharpness(
edgeIds,
The ids of the edges to change.
sharpness,
The sharpness to apply to every edge in the list. Pass SubDEdgeSharpness.Smooth to make the edges smooth again.
preserveSymmetry
If true and this SubD has symmetric content, the change tries to keep it symmetric.
)
The number of edges that were changed.

SetEdgeSharpness

#Since v8.36
Sets the sharpness of a list of edges, one sharpness per edge.

Use this with SubDEdgeSharpness.CreateEdgeChainSharpness(Interval, int) to give a chain of edges a sharpness that varies evenly along it.

[CLSCompliant(false)] public uint SetEdgeSharpness(
edges,
The edges to change.
sharpnesses,
One sharpness per edge, in the same order as edges. Must be the same length.
preserveSymmetry
If true and this SubD has symmetric content, the change tries to keep it symmetric.
)
The number of edges that were changed.

SetEdgeSharpness

#Since v8.36
Sets the sharpness of a list of edges.
[CLSCompliant(false)] public uint SetEdgeSharpness(
edges,
The edges to change.
sharpness,
The sharpness to apply to every edge in the list. Pass SubDEdgeSharpness.Smooth to make the edges smooth again.
preserveSymmetry
If true and this SubD has symmetric content, the change tries to keep it symmetric.
)
The number of edges that were changed.

SetUserString

Attach a user string (key,value combination) to this geometry.
public bool SetUserString(
key,
id used to retrieve this string.
value
string associated with key.
)
inherited fromGeometryBase
true on success.

SetVertexSurfacePoint

#Since v8.0
Set the location of a single vertex surface point. This function is not suitable for setting the locations of multiple vertex surface points that are topologically near to each other.
[CLSCompliant(false)] public bool SetVertexSurfacePoint(
vertexIndex,
Index of the vertex to modify
surfacePoint
New surface point location for that vertex
)

SharpEdgeCount

#Since v8.36
Gets the number of sharp edges in this SubD. See SubDEdge.IsSharp for what makes an edge sharp.
[CLSCompliant(false)] [ConstOperation] public uint SharpEdgeCount()
The number of sharp edges.

SharpEdgeCount

#Since v8.36
Gets the number of sharp edges in this SubD, and the range of sharpness values used.
[CLSCompliant(false)] [ConstOperation] public uint SharpEdgeCount(
sharpnessRange
The smallest and largest sharpness found on the sharp edges. If there are no sharp edges, this is SubDEdgeSharpness.Smooth.
)
The number of sharp edges.

Subdivide

#Since v8.0
Apply the Catmull-Clark subdivision algorithm and save the results in this SubD.
public bool Subdivide()
true on success

Subdivide

#Since v8.0
Apply the Catmull-Clark subdivision algorithm and save the results in this SubD.
public bool Subdivide(
faceIndices
Indices of the faces to subdivide.
)
true on success

Subdivide

#Since v7.0
Apply the Catmull-Clark subdivision algorithm and save the results in this SubD.
public bool Subdivide(
count
Number of times to subdivide (must be greater than 0)
)
true on success

SurfaceMeshCacheExists

#Since v8.9
Checks that a surface mesh evaluation cache exists, and that it has the required options. This cache is used by
[CLSCompliant(false)] public bool SurfaceMeshCacheExists(
bTextureCoordinatesExist,
If True, the cache must contain texture coordinates information.
bCurvaturesExist,
If True, the cache must contain curvature information.
bColorsExist
If True, the cache must contain color information.
)
Remarks: This does not check that the cache is up to date, UpdateSurfaceMeshCache(bool).
True if the cache exists on all face fragments and has the required options.

ToBrep

#Since v7.6
Create a Brep based on this SubD geometry, based on SubDToBrepOptions.Default options.
public Brep ToBrep()
A new Brep if successful, or null on failure.

ToBrep

#Since v7.0
Create a Brep based on this SubD geometry.
public Brep ToBrep(
options
The SubD to Brep conversion options. Use SubDToBrepOptions.Default for sensible defaults. Currently, these return unpacked faces and locally-G1 vertices in the output Brep.
)
A new Brep if successful, or null on failure.

ToJSON

Create a JSON string representation of this object
public string ToJSON()
inherited fromCommonObject

Transform

Transforms the geometry. If the input Transform has a SimilarityType of OrientationReversing, you may want to consider flipping the transformed geometry after calling this function when it makes sense. For example, you may want to call Flip() on a Brep after transforming it.
public bool Transform(
Transform
xform
Transformation to apply to geometry.
)
inherited fromGeometryBase
true if geometry successfully transformed.

TransformComponents

#Since v8.12
Transforms an enumerable of SubD components.
[CLSCompliant(false)] public uint TransformComponents(
components,
The SubD components to transform.
xform,
The transformation to apply.
componentLocation
Select between applying the transform to the control net (faster) or the surface points (slower).
)
Remarks: This method does not clear the evaluation cache.
The number of vertex locations that changed.

Translate

Translates the object along the specified vector.
public bool Translate(
x,
The X component.
y,
The Y component.
z
The Z component.
)
inherited fromGeometryBase
true if geometry successfully translated.

Translate

Translates the object along the specified vector.
public bool Translate(
translationVector
A moving vector.
)
inherited fromGeometryBase
true if geometry successfully translated.

UpdateAllTagsAndSectorCoefficients

#Since v7.0
Updates vertex tag, edge tag, and edge coefficient values on the active level. After completing custom editing operations that modify the topology of the SubD control net or changing values of vertex or edge tags, the tag and sector coefficients information on nearby components in the edited areas need to be updated.
[CLSCompliant(false)] public uint UpdateAllTagsAndSectorCoefficients()
Number of vertices and edges that were changed during the update.

UpdateSurfaceMeshCache

#Since v8.7
Updates limit surface information returned byThe density of the mesh cache is SubDDisplayParameters.Default().
[CLSCompliant(false)] public uint UpdateSurfaceMeshCache(
lazyUpdate
If false, all information is updated. If true, only missing information is updated. If a relatively small subset of a SubD has been modified and care was taken to mark cached subdivision information as stale, then passing true can substantially improve performance.
)
The number of elements that were updated.