Printing3DMesh Printing3DMesh Printing3DMesh Printing3DMesh Class

Definition

Represents a mesh in the 3D model.

public : sealed class Printing3DMesh : IPrinting3DMeshpublic sealed class Printing3DMesh : IPrinting3DMeshPublic NotInheritable Class Printing3DMesh Implements IPrinting3DMesh// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced v1)

Remarks

The Printing3DMesh class corresponds to the <mesh> element in the 3D Manufacturing Format (3MF) specification. For more info, see the 3MF Specification.

Constructors

Printing3DMesh() Printing3DMesh() Printing3DMesh() Printing3DMesh()

Creates an instance of the Printing3DMesh class.

public : Printing3DMesh()public Printing3DMesh()Public Sub New()// You can use this method in JavaScript.

Properties

BufferDescriptionSet BufferDescriptionSet BufferDescriptionSet BufferDescriptionSet

Gets a set of mesh buffer descriptions.

public : IPropertySet BufferDescriptionSet { get; }public IPropertySet BufferDescriptionSet { get; }Public ReadOnly Property BufferDescriptionSet As IPropertySet// You can use this property in JavaScript.
Value
IPropertySet IPropertySet IPropertySet IPropertySet

A set of mesh buffer descriptions.

BufferSet BufferSet BufferSet BufferSet

Gets a set of mesh buffers.

public : IPropertySet BufferSet { get; }public IPropertySet BufferSet { get; }Public ReadOnly Property BufferSet As IPropertySet// You can use this property in JavaScript.
Value
IPropertySet IPropertySet IPropertySet IPropertySet

A set of mesh buffers.

IndexCount IndexCount IndexCount IndexCount

Gets or sets the number of triangle indices.

public : unsigned int IndexCount { get; set; }public uint IndexCount { get; set; }Public ReadWrite Property IndexCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of triangle indices.

TriangleIndicesDescription TriangleIndicesDescription TriangleIndicesDescription TriangleIndicesDescription

Gets or sets the buffer description for triangle indices.

public : Printing3DBufferDescription TriangleIndicesDescription { get; set; }public Printing3DBufferDescription TriangleIndicesDescription { get; set; }Public ReadWrite Property TriangleIndicesDescription As Printing3DBufferDescription// You can use this property in JavaScript.

TriangleMaterialIndicesDescription TriangleMaterialIndicesDescription TriangleMaterialIndicesDescription TriangleMaterialIndicesDescription

Gets or sets the buffer description for triangle material indices.

public : Printing3DBufferDescription TriangleMaterialIndicesDescription { get; set; }public Printing3DBufferDescription TriangleMaterialIndicesDescription { get; set; }Public ReadWrite Property TriangleMaterialIndicesDescription As Printing3DBufferDescription// You can use this property in JavaScript.

VertexCount VertexCount VertexCount VertexCount

Gets or sets the number of triangle vertices.

public : unsigned int VertexCount { get; set; }public uint VertexCount { get; set; }Public ReadWrite Property VertexCount As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The number of triangle vertices.

VertexNormalsDescription VertexNormalsDescription VertexNormalsDescription VertexNormalsDescription

Gets or sets the buffer description for vertex normals.

public : Printing3DBufferDescription VertexNormalsDescription { get; set; }public Printing3DBufferDescription VertexNormalsDescription { get; set; }Public ReadWrite Property VertexNormalsDescription As Printing3DBufferDescription// You can use this property in JavaScript.

VertexPositionsDescription VertexPositionsDescription VertexPositionsDescription VertexPositionsDescription

Gets or sets the buffer description for vertex positions.

public : Printing3DBufferDescription VertexPositionsDescription { get; set; }public Printing3DBufferDescription VertexPositionsDescription { get; set; }Public ReadWrite Property VertexPositionsDescription As Printing3DBufferDescription// You can use this property in JavaScript.

Methods

CreateTriangleIndices(UInt32) CreateTriangleIndices(UInt32) CreateTriangleIndices(UInt32) CreateTriangleIndices(UInt32)

Creates the buffer for triangle indices.

public : void CreateTriangleIndices(unsigned int value)public void CreateTriangleIndices(UInt32 value)Public Function CreateTriangleIndices(value As UInt32) As void// You can use this method in JavaScript.
Parameters
value
unsigned int UInt32 UInt32 UInt32

The capacity of the buffer, the maximum number of bytes that the IBuffer can hold.

Remarks

To access the buffer for triangle indices, use GetTriangleIndices.

CreateTriangleMaterialIndices(UInt32) CreateTriangleMaterialIndices(UInt32) CreateTriangleMaterialIndices(UInt32) CreateTriangleMaterialIndices(UInt32)

Creates the buffer for triangle material indices.

public : void CreateTriangleMaterialIndices(unsigned int value)public void CreateTriangleMaterialIndices(UInt32 value)Public Function CreateTriangleMaterialIndices(value As UInt32) As void// You can use this method in JavaScript.
Parameters
value
unsigned int UInt32 UInt32 UInt32

The capacity of the buffer, the maximum number of bytes that the IBuffer can hold.

Remarks

To access the buffer for triangle material indices, use GetTriangleMaterialIndices.

CreateVertexNormals(UInt32) CreateVertexNormals(UInt32) CreateVertexNormals(UInt32) CreateVertexNormals(UInt32)

Creates the buffer for vertex normals.

public : void CreateVertexNormals(unsigned int value)public void CreateVertexNormals(UInt32 value)Public Function CreateVertexNormals(value As UInt32) As void// You can use this method in JavaScript.
Parameters
value
unsigned int UInt32 UInt32 UInt32

The capacity of the buffer, the maximum number of bytes that the IBuffer can hold.

Remarks

To access the buffer for vertex normals, use GetVertexNormals.

CreateVertexPositions(UInt32) CreateVertexPositions(UInt32) CreateVertexPositions(UInt32) CreateVertexPositions(UInt32)

Creates the buffer for vertex positions.

public : void CreateVertexPositions(unsigned int value)public void CreateVertexPositions(UInt32 value)Public Function CreateVertexPositions(value As UInt32) As void// You can use this method in JavaScript.
Parameters
value
unsigned int UInt32 UInt32 UInt32

The capacity of the buffer, the maximum number of bytes that the IBuffer can hold.

Remarks

To access the buffer for vertex positions, use GetVertexPositions.

GetTriangleIndices() GetTriangleIndices() GetTriangleIndices() GetTriangleIndices()

Gets the buffer for triangle indices.

public : IBuffer GetTriangleIndices()public IBuffer GetTriangleIndices()Public Function GetTriangleIndices() As IBuffer// You can use this method in JavaScript.
Returns

The buffer for triangle indices.

Remarks

To create the buffer for triangle indices, use CreateTriangleIndices.

GetTriangleMaterialIndices() GetTriangleMaterialIndices() GetTriangleMaterialIndices() GetTriangleMaterialIndices()

Gets the buffer for triangle material indices.

public : IBuffer GetTriangleMaterialIndices()public IBuffer GetTriangleMaterialIndices()Public Function GetTriangleMaterialIndices() As IBuffer// You can use this method in JavaScript.
Returns

The buffer for triangle material indices.

Remarks

To create the buffer for triangle material indices, use CreateTriangleMaterialIndices.

GetVertexNormals() GetVertexNormals() GetVertexNormals() GetVertexNormals()

Gets the buffer for vertex normals.

public : IBuffer GetVertexNormals()public IBuffer GetVertexNormals()Public Function GetVertexNormals() As IBuffer// You can use this method in JavaScript.
Returns

The buffer for vertex normals.

Remarks

To create the buffer for vertex normals, use CreateVertexNormals.

GetVertexPositions() GetVertexPositions() GetVertexPositions() GetVertexPositions()

Gets the buffer for vertex positions.

public : IBuffer GetVertexPositions()public IBuffer GetVertexPositions()Public Function GetVertexPositions() As IBuffer// You can use this method in JavaScript.
Returns

The buffer for vertex positions.

Remarks

To create the buffer for vertex positions, use CreateVertexPositions.

VerifyAsync(Printing3DMeshVerificationMode) VerifyAsync(Printing3DMeshVerificationMode) VerifyAsync(Printing3DMeshVerificationMode) VerifyAsync(Printing3DMeshVerificationMode)

Verifies the mesh has manifold edges and normal triangles.

public : IAsyncOperation<Printing3DMeshVerificationResult> VerifyAsync(Printing3DMeshVerificationMode value)public IAsyncOperation<Printing3DMeshVerificationResult> VerifyAsync(Printing3DMeshVerificationMode value)Public Function VerifyAsync(value As Printing3DMeshVerificationMode) As IAsyncOperation( Of Printing3DMeshVerificationResult )// You can use this method in JavaScript.
Parameters
Returns