元編程參考文件

Staging Bridges

4 個節點

本頁內容 4

Mesh From Mesh Data

函數

A mesh made by the modelling toolboxes - positions, faces of any size, and the normals and texture coordinates its corners carry - as a mesh a scene can place.

簽名
MeshFromMeshData -> Mesh Element
    mesh: Streamed Vertex Mesh Data
    yUp: 真否
    name: 文字
MeshElement MeshFromMeshData(
    StreamedVertexMeshData mesh,
    bool yUp = false,
    string name = "")

參數

名稱型別預設值說明
meshStreamed Vertex Mesh Data—The mesh.
yUp真否FalseWhether it was made with +Y up, as a glTF or a material's sample mesh is, so it is stood up in this +Z-up world.
name文字—Its name in the scene.

返回

結果Mesh Element
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Staging Bridges
所屬包
電腦圖形

Mesh From N Gon Mesh

函數

A many-sided mesh, as the shape grammars, trees and OBJ readers make one, as a mesh a scene can place.

簽名
MeshFromNGonMesh -> Mesh Element
    mesh: N-gon Geometry
    yUp: 真否
    name: 文字
MeshElement MeshFromNGonMesh(
    NGonFaceIndexMesh mesh,
    bool yUp = false,
    string name = "")

參數

名稱型別預設值說明
meshN-gon Geometry—The mesh; its corners count its positions from 1, as an OBJ file does.
yUp真否FalseWhether it was made with +Y up.
name文字—Its name in the scene; empty for the mesh's own material name or "Mesh".

返回

結果Mesh Element
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Staging Bridges
所屬包
電腦圖形

Mesh From Solid

函數

A solid from the Solids toolbox - a boolean of boxes, a hull, a gear - as a mesh a scene can place.

簽名
MeshFromSolid -> Mesh Element
    solid: Manifold
    smooth: 真否
    name: 文字
MeshElement MeshFromSolid(
    Manifold solid,
    bool smooth = false,
    string name = "")

參數

名稱型別預設值說明
solidManifold—The solid.
smooth真否FalseWhether its faces are shaded smoothly across their edges, for a solid that approximates a curved surface; off for a machined part's flat faces and crisp edges.
name文字—Its name in the scene.

返回

結果Mesh Element
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Staging Bridges
所屬包
電腦圖形

Procedural Material

函數

A procedural PBR material from the Materials toolbox, as a material a scene can paint with: its base colour, normal, roughness and metallic baked into maps, its emission when it glows.

簽名
ProceduralMaterial -> Material Description
    material: PBR Material
    tiling: 數字
    resolution: 整數
    tilingV: 數字
MaterialDescription ProceduralMaterial(
    PbrMaterial material,
    double tiling = 1,
    int resolution = 0,
    double tilingV = 0)

參數

名稱型別預設值說明
materialPBR Material—The material.
tiling數字1How many times its maps repeat across a surface's texture coordinates: a shape's run 0 to 1 across each face, so a floor 4 metres wide of a material whose tile is 1 metre wants 4.
resolution整數0The maps' size in pixels; 0 for the material's own.
tilingV數字0How many times they repeat in the texture's second direction, which runs up each side of a box; 0 for the same as Tiling. A wall 7 metres long and 2.4 high of a material whose tile is 2.4 metres wants a tiling of 3 and a tiling V of 1, or its bricks are squashed.

返回

結果Material Description

備註

An opacity map is not carried, since the surface's opacity is one number here; a see-through material keeps its average. Sheen, transmission, iridescence and anisotropy have no place in a UsdPreviewSurface and are left out, as the Materials package's own glTF export leaves those out of a renderer that lacks them.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Staging Bridges
所屬包
電腦圖形