文档

​
​

Development

User Acquisition

Monetization

工业

Asset Transformer SDK

2025.7

受支持
​

User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

2025.7

受支持
​

此页面不支持所选语言。
​
​
Get started
  • System requirements
  • Licensing
  • Setup
  • Migrate from Scenario Processor
Framework
  • Framework
  • Preferences
Input/output files
  • Supported formats
  • Import files
  • Export files
  • Export textures
  • CAD vs Mesh
Scene
  • Product structure
  • Occurrence
  • Component
    • Part
    • Metadata
    • SubpartMaterial
  • Material
Algorithms
  • CAD
  • Healing
  • Optimization
  • Combine and bake
  • Reconstruction
  • UVs
Viewer
  • Viewer
Pixyz UI
  • Setup
  • Overview
  • Create a custom UI
Guidelines
  • Data preparation
  • Process point clouds
Debug and diagnose
  • Log files
  • Debug best practices
Other
  • Samples
  • Glossary
  1. Asset Transformer SDK (ex Pixyz)

Part

Learn about Part components in Pixyz scenes, including their properties, how to retrieve geometry information, and methods for duplication.
阅读时间2 分钟
最后更新于 9 个月前

API reference
Parts are components that contain geometry information, such as information related to CAD, meshes, lines, and UVs. "Part occurrences" is a term often used to refer to occurrences containing part components.
Part properties:

Property

Type

Description

IdIdentA unique unsigned int identifier.
BRepShapeInitialEntityOriginal CAD geometry data before tessellation.
BRepShapeModifiedEntity
TessellatedShapeEntityMesh information.
TransformMatrix4Local transform matrix of this part component, storing local position, rotation and scale information.
提示
Use scene.getPartOccurrences(root) to retrieve all part occurrences under the
root
occurrence.
Use definitions to retrieve geometry information from a Part component. This example shows how to retrieve the position of vertices of a mesh (Mesh) through its definition (MeshDefinition):
part = pxz.scene.getComponent(occurrence, pxz.scene.ComponentType.Part)# "part == 0" means that the occurrence doesn't have a part component.if (part > 0){ mesh = pxz.scene.getPartMesh(part) # "mesh == 0" means that no mesh is attached to the part. if (mesh > 0) { # Queries geometry information from meshes. meshDef = pxz.polygonal.getMeshDefinition(mesh) vertices = meshDef.vertices # … }}
To duplicate a part, use the core.cloneEntity method. This snippet shows how to create a new occurrence that shares the same part component as its input:
# Gets the components to be duplicated.partComponent = pxz.scene.getComponent(occ, pxz.scene.ComponentType.Part)# Creates an occurrence.lod = pxz.scene.createOccurrence("_LOD1")# Sets the part component of the cloned occurrence as the part component of the new occurrence.pxz.scene.setComponentOccurrence(pxz.core.cloneEntity(part), lod)pxz.scene.setParent(lod, occ)

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。


    报告此页面的问题