Share via


Printing3DCompositeMaterialGroup Class

Definition

Represents a group of composite materials.

public ref class Printing3DCompositeMaterialGroup sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Graphics.Printing3D.IPrinting3DCompositeMaterialGroupFactory, 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 Printing3DCompositeMaterialGroup 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(Windows.Graphics.Printing3D.IPrinting3DCompositeMaterialGroupFactory, 65536, "Windows.Graphics.Printing3D.Printing3DContract")]
class Printing3DCompositeMaterialGroup final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Graphics.Printing3D.IPrinting3DCompositeMaterialGroupFactory), 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 Printing3DCompositeMaterialGroup
[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(typeof(Windows.Graphics.Printing3D.IPrinting3DCompositeMaterialGroupFactory), 65536, "Windows.Graphics.Printing3D.Printing3DContract")]
public sealed class Printing3DCompositeMaterialGroup
function Printing3DCompositeMaterialGroup(MaterialGroupId)
Public NotInheritable Class Printing3DCompositeMaterialGroup
Inheritance
Object Platform::Object IInspectable Printing3DCompositeMaterialGroup
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

Each composite material is defined by a mixture of base materials that are listed in the specified base material group (MaterialGroupId). The index values of possible base materials from that material group are specified in MaterialIndices. Each mixture is defined by listing the proportion of the overall mixture for each base material (values between 0 and 1). The mixtures of base materials are specified in Composites, where the proportion values are specified in the same order as the base materials in MaterialIndices.

This class corresponds to the <compositematerials> 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 BaseMaterialGroup

Constructors

Printing3DCompositeMaterialGroup(UInt32)

Creates an instance of the Printing3DCompositeMaterialGroup class.

Properties

BaseMaterialGroup

Gets the existing Printing3DBaseMaterialGroup whose Printing3DBaseMaterial members will be used to produce composite materials.

Composites

Gets an list of mixtures that define individual composite materials. Each mixture is defined by listing the proportion of the overall mixture for each base material (values between 0 and 1), where the proportion values are specified in the same order as the base materials in MaterialIndices.

MaterialGroupId

Gets the identifier (ID) of the base material group that defines the materials used in the composite material group.

MaterialIndices

Gets an ordered list of base materials that are used to make the composite materials in the group. The order of base materials is maintained in the mixture values defined by Composites.

Applies to