Working مع Radius من Sphere

Work مع Radius من Sphere

باستخدام Aspose.3D for .NET ، يمكنك ضبط الحصول على نصف قطر كروي. من أجل الحصول على نصف قطر أو ضياعه ، يمكنك استخدام خاصية Radius من فئة Sphere. فيما يلي عينة الكود لتعيين نصف قطر كروي.

// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET
// Create a Scene
Scene scene = new Scene();
// Set Sphere Radius (Using Radius property you can get or set radius of Sphere)
scene.RootNode.CreateChildNode(new Sphere() { Radius = 10 });
// Save scene
scene.Save("sphere.obj");