Printing3DFaceReductionOptions Class

Definition

Provides additional information for the TryReduceFacesAsync method in the Printing3DModel class

public ref class Printing3DFaceReductionOptions sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Graphics.Printing3D.Printing3DContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Graphics.Printing3D.Printing3DContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Printing3DFaceReductionOptions final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Graphics.Printing3D.Printing3DContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Graphics.Printing3D.Printing3DContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Printing3DFaceReductionOptions
function Printing3DFaceReductionOptions()
Public NotInheritable Class Printing3DFaceReductionOptions
Inheritance
Object Platform::Object IInspectable Printing3DFaceReductionOptions
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced in v3.0)

Remarks

This API is designed for use with 3D Manufacturing Format (3MF) packages. For more info about 3MF, see the 3MF Specification.

Constructors

Printing3DFaceReductionOptions()

Creates an instance of the Printing3DFaceReductionOptions class.

Properties

MaxEdgeLength

Sets the maximum length of an edge for which the triangles that share said edge can be merged via the TryReduceFacesAsync method. If set to zero, a built-in default value is used.

MaxReductionArea

Sets the area of a triangle above which said triangle cannot be merged via the TryReduceFacesAsync method. If set to zero, a built-in default value is used.

TargetTriangleCount

Sets the desired number of triangles on a mesh. The TryReduceFacesAsync method will stop merging faces if the triangle count is less than or equal to this number. If set to zero, the algorithm will run until the number of triangles is reduced by half.

Applies to