Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.15 KB

printing3dtextureedgebehavior.md

File metadata and controls

35 lines (24 loc) · 2.15 KB
-api-id -api-type -api-device-family-note
T:Windows.Graphics.Printing3D.Printing3DTextureEdgeBehavior
winrt enum
xbox

Printing3DTextureEdgeBehavior

-description

Specifies how tiling should occur in the U and V axis in order to fill the overall requested area of a texture.

-enum-fields

-field None:0

No tiling will occur.

-field Wrap:1

Tiles repeat the texture resource at every integer junction. For example, with texture coordinates of (0.0,0.0), (0.0,3.0), (3.0,3.0), and (3.0,0.0), setting the Wrap texture edge behavior results in the texture being applied three times in both the u-and v-directions, as shown here.Illustration of a face texture wrapped in the u-direction and the v-direction

-field Mirror:2

Tiles mirror the texture at every integer boundary. For example, with texture coordinates of (0.0,0.0), (0.0,3.0), (3.0,3.0), and (3.0,0.0). Setting the Wrap texture edge behavior results in the texture being applied three times in both the u- and v-directions. Every other row and column that it is applied is a mirror image of the preceding row or column, as shown here. Illustration of mirror images in a 3x3 grid

-field Clamp:3

Clamps texture coordinates to the [0.0, 1.0] range. That is, it applies the texture once, then smears the color of edge pixels. For example, suppose that your application creates a square primitive and assigns texture coordinates of (0.0,0.0), (0.0,3.0), (3.0,3.0), and (3.0,0.0) to the primitive's vertices. Setting the Clamp texture edge behavior results in the texture being applied once. The pixel colors at the top of the columns and the end of the rows are extended to the top and right of the primitive respectively, as shown here.Illustration of a texture and clamped texture.

-remarks

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

-examples

-see-also