SIConvert

カテゴリ

primitive

詳細

インプリシットなプリミティブをジオメトリ タイプに変換します。

警告: インプリシット プリミティブは、ジオメトリ タイプと互換性を持っている必要があります。

注: このコマンドは、出力引数を使用します。 C# および一部のスクリプト言語(JScript、PerlScript、Python など)は、リファレンスによって渡される引数をサポートしていません。 ただし、このコマンドは、出力引数を含むXSICollectionも戻します。

スクリプト構文

oReturn = SIConvert( Target, Source, CreatedObj, OutputObj );

戻り値

作成されたコンバータ オペレータを含む XSICollection と、XSICollection にラップされた新しく作成したジオメトリック プリミティブ オブジェクトを戻します。

パラメータ

パラメータ タイプ 詳細
Target 文字列 出力ジオメトリの名前

指定可能な値:

説明:

MeshSurface Mesh サーフェイス ジオメトリ
NurbsSurface NURBS カーブ ジオメトリ
NurbsCurve NURBS カーブ ジオメトリ
Glyphs インプリシット テキストで使用するための出力ジオメトリ タイプ
Source 文字列 変換するオブジェクト
CreatedObj オペレータ コンバータ オペレータを戻します。
OutputObj プリミティブを含む XSICollection プリミティブを戻します。

VBScript の例

' This example shows how to convert an implicit sphere to a mesh sphere
NewScene , false
dim lCreated, oImplicitSphere
' Create implicit sphere
set oImplicitSphere = GetPrim("Sphere")
' Implicit sphere becomes a mesh.
' SIConvert returns more information than Convert.
' The return collection is consulted instead of the return parameters
' because it is more scripting language neutral.
set lCreated = SIConvert( "MeshSurface", oImplicitSphere )
'Log the following information:
'INFO : "2 elements in collection."
'INFO : "First object is an Operator"
'INFO : "Second object is an Object"
LogMessage lCreated.Count & " elements in collection."
LogMessage "First object is an " & typename( lCreated(0))
LogMessage "Second object is an " & typename( lCreated(1))

関連項目

Convert