新しいジオメトリを X3DObject の子として追加します。たとえば、ActiveSceneRoot.AddGeometry "Cube", "NurbsSurface を使用し、新しい NURBS キューブをシーンに追加できます。
| X3DObject X3DObject.AddGeometry( Object in_geomPreset, Object in_convPreset, String in_name ); | 
| oReturn = X3DObject.AddGeometry( Preset, [Type], [Name] ); | 
| パラメータ | タイプ | 説明 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Preset | String | Geometry Primitives や Implicit Primitives のためのプリセットの 1 つ(「球」、「トーラス」、「円盤」など)。 注:型引数にジオメトリのタイプを指定する場合は、指定されたジオメトリをサポートするプリミティブプリセット(以下のリストを参照)のみを使用できます。 | ||||||||||||
| Type | String | ジオメトリのタイプ。 デフォルト値:作成されるインプリシットオブジェクト 
 | ||||||||||||
| Name | String | 子の名前 | 
| oRoot = Application.ActiveSceneRoot; oMeshSphere = oRoot.AddGeometry( "Sphere", "MeshSurface" ); oNurbsSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" ); oNurbsArc = oRoot.AddGeometry( "Arc", "NurbsCurve" ); // Create an implicit object, which is the same as calling AddPrimitive() oGrid = oRoot.AddGeometry( "Arc" ); | 
| set oRoot = Application.ActiveProject.ActiveScene.Root set oMeshSphere = oRoot.AddGeometry( "Sphere", "MeshSurface" ) set oNurbsSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" ) set oNurbsArc = oRoot.AddGeometry( "Arc", "NurbsCurve" ) ' Create an implicit object, which is the same as calling AddPrimitive() set oGrid = oRoot.AddGeometry( "Arc" ) |