Node — Aspose.3D FOSS for .NET

Enumerations

Enumerations Node class Aspose के 3D सीन ग्राफ़ में एक नामित तत्व का प्रतिनिधित्व करता है। प्रत्येक नोड एक रख सकता है Entity (जैसे कि एक Mesh, Camera, या Light), अन्य नोड्स के साथ पैरेंट-चाइल्ड संबंध बनाए रखता है, और एक स्थानीय ट्रांसफ़ॉर्म ले जाता है। नोड्स सीन पदानुक्रम में 3D वस्तुओं को व्यवस्थित करने का प्राथमिक तरीका हैं।.

using Aspose.ThreeD;

var scene = new Scene();

// Access the root node
Node root = scene.RootNode;

// Create a child node
Node child = root.CreateChildNode("my_node");

// Iterate child nodes
foreach (var node in root.ChildNodes)
{
    Console.WriteLine(node.Name);
}

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
Namestringget/setनोड के लिए मानव-पठनीय पहचानकर्ता
EntityEntityget/setइस नोड से जुड़ी प्राथमिक इकाई
EntitiesList<Entity>प्राप्त करेंइस नोड से जुड़ी सभी इकाइयाँ
ChildNodesList<Node>प्राप्त करेंसीन पदानुक्रम में बाल नोड्स
ParentNodeNodeप्राप्त करेंपदानुक्रम में पैरेंट नोड
TransformTransformप्राप्त करेंस्थानीय रूपांतरण (translation, rotation, scale)
GlobalTransformGlobalTransformप्राप्त करेंगणना किया गया world-space रूपांतरण
PropertiesPropertyCollectionप्राप्त करेंकस्टम प्रॉपर्टीज़

Enumerations

Enumerationsरिटर्न टाइपEnumerations
CreateChildNode(string name)Nodeदिए गए नाम के साथ एक नया चाइल्ड नोड बनाता है
CreateChildNode(string name, Entity entity)Nodeअटैच्ड एंटिटी के साथ एक चाइल्ड नोड बनाता है

Enumerations

using Aspose.ThreeD;
using Aspose.ThreeD.Entities;

var scene = new Scene();

// Build a hierarchy with entities
var parent = scene.RootNode.CreateChildNode("Parent");
parent.Transform.Translation = new FVector3(10, 0, 0);

var box = new Box(2, 2, 2);
var child = parent.CreateChildNode("BoxChild", box);
child.Transform.Translation = new FVector3(5, 0, 0);

scene.Save("hierarchy.gltf");

संबंधित देखें

 हिन्दी