SubDToBrepOptions

References
Options used for converting a SubD to a Brep

Constructors

SubDToBrepOptions

#Since v7.0
public SubDToBrepOptions()
Create default options

SubDToBrepOptions

#Since v7.1
public SubDToBrepOptions(bool packFaces, ExtraordinaryVertexProcessOption vertexProcess)
Create options from the given packFaces and vertexProcess values.
packFaces (bool)Sets the pack faces options.
vertexProcess (SubDToBrepOptions.ExtraordinaryVertexProcessOption)Sets the extraordinary vertex process option.

Finalizer

~SubDToBrepOptions

#
~SubDToBrepOptions()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Default

#Since v7.0
public static SubDToBrepOptions Default { get; }
Default SubDToBrepOptions settings. Currently selects the same options as DefaultUnpacked: Locally-G1 smoothing of extraordinary vertices, unpacked faces.
Remarks: These are the settings used by ON_SubD::BrepForm()

DefaultPacked

#Since v7.0
public static SubDToBrepOptions DefaultPacked { get; }
Default ON_SubDToBrepParameters settings for creating a packed brep. Locally-G1 smoothing of extraordinary vertices, packed faces.

DefaultUnpacked

#Since v7.0
public static SubDToBrepOptions DefaultUnpacked { get; }
Default ON_SubDToBrepParameters settings for creating an unpacked brep. Locally-G1 smoothing of extraordinary vertices, unpacked faces.

ExtraordinaryVertexProcess

#Since v7.0
public SubDToBrepOptions.ExtraordinaryVertexProcessOption ExtraordinaryVertexProcess { get; set; }
Get or sets the extraordinary vertex process option.

PackFaces

#Since v7.0
public bool PackFaces { get; set; }
Get or sets the pack faces option.

Methods

Dispose

#Since v7.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.