Printing3DModel Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the 3D model in a 3D Manufacturing Format (3MF) package.
public ref class Printing3DModel sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Graphics.Printing3D.Printing3DContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Graphics.Printing3D.Printing3DContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Printing3DModel final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Graphics.Printing3D.Printing3DContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Graphics.Printing3D.Printing3DContract")]
class Printing3DModel final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Graphics.Printing3D.Printing3DContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Graphics.Printing3D.Printing3DContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Printing3DModel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Graphics.Printing3D.Printing3DContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Graphics.Printing3D.Printing3DContract")]
public sealed class Printing3DModel
function Printing3DModel()
Public NotInheritable Class Printing3DModel
- Inheritance
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Graphics.Printing3D.Printing3DContract (introduced in v1.0)
|
Remarks
The Printing3DModel class corresponds to the <model>
element in the 3D Manufacturing Format (3MF) specification. For more info, see the 3MF Specification.
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | RepairWithProgressAsync |
1607 | 14393 | TryPartialRepairAsync |
1607 | 14393 | TryPartialRepairAsync(TimeSpan) |
1607 | 14393 | TryReduceFacesAsync |
1607 | 14393 | TryReduceFacesAsync(Printing3DFaceReductionOptions) |
1607 | 14393 | TryReduceFacesAsync(Printing3DFaceReductionOptions,TimeSpan) |
Constructors
Printing3DModel() |
Creates an instance of the Printing3DModel class. |
Properties
Build |
Gets or sets the root 3D Manufacturing Format (3MF) component. It represents the build plate on a 3D printer and defines what will be printed. |
Components |
Gets all 3D Manufacturing Format (3MF) components used in the 3D model. |
Material |
Gets or sets the root material container for the 3D model. |
Meshes |
Gets all meshes used in the 3D model. |
Metadata |
Gets the metadata for the 3D Manufacturing Format (3MF) package. |
RequiredExtensions |
Gets a list of the extensions required by the 3D Manufacturing Format (3MF) package. |
Textures |
Gets all textures used in the 3D model. |
Unit |
Gets or sets the units of measure used in the 3D model. |
Version |
Gets or sets the version of the 3D Manufacturing Format (3MF) package. |
Methods
Clone() |
Gets a copy of the current 3D model. |
RepairAsync() |
Executes the 3D model repair algorithm on the model. |
RepairWithProgressAsync() |
Executes the 3D model repair algorithm, with the ability to report the progress of the operation. |
TryPartialRepairAsync() |
Executes the 3D model repair algorithm until complete or an exception is thrown. |
TryPartialRepairAsync(TimeSpan) |
Begins the 3D model repair algorithm, but exits if the time limit is reached. |
TryReduceFacesAsync() |
Runs an algorithm that reduces the number of triangle faces in all of the meshes within the Printing3DModel by merging nearby vertices. Stops when the total number of triangles is reduced by half. |
TryReduceFacesAsync(Printing3DFaceReductionOptions) |
Runs an algorithm that reduces the number of triangle faces in all of the meshes within the Printing3DModel by merging nearby vertices. Stops according to the specified options. |
TryReduceFacesAsync(Printing3DFaceReductionOptions, TimeSpan) |
Runs an algorithm that reduces the number of triangle faces in all of the meshes within the Printing3DModel by merging nearby vertices. Stops according to the specified options or when the maxWait time is reached. |