元编程参考文档

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
所属包
计算机图形