PlyFormat
Inheritance: java.lang.Object, com.aspose.threed.FileFormat
public class PlyFormat extends FileFormat
PLY フォーマットです。 Example: 以下のコードは PLY ファイルからメッシュをデコードする方法を示しています。
//Generate a test file for decoding
FileFormat.PLY.encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.decode("sphere.ply")
フィールド
| フィールド | 説明 |
|---|---|
| AMF | 積層造形ファイル形式 |
| ASE | 3D Studio Max の ASCII シーンエクスポーター形式。 |
| ASPOSE3D_WEB | Aspose.3D Web 形式。 |
| BLENDER | Blender の 3D ファイル形式 |
| COLLADA | Collada ファイル形式 |
| DISCREET3DS | 3D Studio のファイル形式 |
| DRACO | Google Draco メッシュ |
| DXF | AutoCAD DXF |
| FBX6100ASCII | ASCII FBX ファイル形式(バージョン 6.1.0) |
| FBX6100_BINARY | バイナリ FBX ファイル形式(バージョン 6.1.0) |
| FBX7200ASCII | ASCII FBX ファイル形式(バージョン 7.2.0) |
| FBX7200_BINARY | バイナリ FBX ファイル形式(バージョン 7.2.0) |
| FBX7300ASCII | ASCII FBX ファイル形式(バージョン 7.3.0) |
| FBX7300_BINARY | バイナリ FBX ファイル形式(バージョン 7.3.0) |
| FBX7400ASCII | ASCII FBX ファイル形式(バージョン 7.4.0) |
| FBX7400_BINARY | バイナリ FBX ファイル形式(バージョン 7.4.0) |
| FBX7500ASCII | ASCII FBX ファイル形式、バージョン 7.5.0 |
| FBX7500_BINARY | Binary FBX ファイル形式、バージョン 7.5.0 |
| FBX7600ASCII | ASCII FBX ファイル形式、バージョン 7.6.0 |
| FBX7600_BINARY | Binary FBX ファイル形式、バージョン 7.6.0 |
| FBX7700ASCII | ASCII FBX ファイル形式、バージョン 7.7.0 |
| FBX7700_BINARY | Binary FBX ファイル形式、バージョン 7.7.0 |
| GLTF | Khronos Group の glTF |
| GLTF2 | Khronos Group の glTF バージョン 2.0 |
| GLTF2_BINARY | Khronos Group の glTF バージョン 2.0 |
| GLTF_BINARY | Khronos Group の glTF(バイナリ形式) |
| HTML5 | HTML5 ファイル |
| IFC | ISO 16739-1 Industry Foundation Classes データモデル。 |
| MAYAASCII | Autodesk Maya(ASCII 形式) |
| MAYA_BINARY | Autodesk Maya(バイナリ形式) |
| MICROSOFT3MF | Microsoft 3D Manufacturing Format |
| PCD | PCL Point Cloud Data ファイル(ASCII モード) |
| PCD_BINARY | PCL Point Cloud Data ファイル(バイナリモード) |
| Adobe の Portable Document Format | |
| PLY | Polygon File Format または Stanford Triangle Format |
| RVM_BINARY | AVEVA Plant Design Management System Model(バイナリ形式) |
| RVM_TEXT | AVEVA Plant Design Management System Model(テキスト形式) |
| SIEMENSJT8 | Siemens JT ファイル バージョン 8 |
| SIEMENSJT9 | Siemens JT ファイル バージョン 9 |
| STLASCII | ASCII STL ファイル形式 |
| STL_BINARY | Binary STL ファイル形式 |
| UNIVERSAL3D | Universal3D ファイル形式 |
| USD | ユニバーサルシーン記述 |
| USDA | ASCII形式のユニバーサルシーン記述。 |
| USDZ | 圧縮されたユニバーサルシーン記述 |
| VRML | バーチャルリアリティモデリング言語 |
| WAVEFRONTOBJ | Wavefront の Obj ファイル形式 |
| XYZ | Xyz 点群ファイル |
| X_BINARY | バイナリ形式の DirectX X ファイル |
| X_TEXT | バイナリ形式の DirectX X ファイル |
| ZIP | 他の 3D ファイル形式を含む Zip アーカイブ。 |
メソッド
| メソッド | 説明 |
|---|---|
| createLoadOptions() | このファイル形式のデフォルト読み込みオプションを作成する |
| createSaveOptions() | このファイル形式のデフォルト保存オプションを作成する |
| decode(Stream stream) | 指定されたストリームから点群またはメッシュをデコードします。 |
| decode(Stream stream, PlyLoadOptions opt) | 指定されたストリームから点群またはメッシュをデコードします。 |
| decode(String fileName) | 指定されたストリームから点群またはメッシュをデコードします。 |
| decode(String fileName, PlyLoadOptions opt) | 指定されたストリームから点群またはメッシュをデコードします。 |
| detect(Stream stream, String fileName) | データストリームからファイル形式を検出します。マジックヘッダーがないタイプを推測するために、ファイル名はオプションです。 |
| detect(String fileName) | ファイル名からファイル形式を検出します。ファイルは読み取り可能である必要があり、Aspose.3D はファイルヘッダーを通じて形式を検出できます。 |
| encode(Entity entity, Stream stream) | エンティティをエンコードし、結果をストリームに保存します。 |
| encode(Entity entity, Stream stream, PlySaveOptions opt) | エンティティをエンコードし、結果をストリームに保存します。 |
| encode(Entity entity, String fileName) | エンティティをエンコードし、結果を外部ファイルに保存します。 |
| encode(Entity entity, String fileName, PlySaveOptions opt) | エンティティをエンコードし、結果を外部ファイルに保存します。 |
| equals(Object arg0) | |
| getCanExport() | Aspose.3D が現在のファイル形式へのシーンエクスポートをサポートしているかどうかを取得します。 |
| getCanImport() | Aspose.3D が現在のファイル形式からのシーンインポートをサポートしているかどうかを取得します。 |
| getClass() | |
| getContentType() | ファイル形式のコンテンツタイプを取得します |
| getExtension() | このタイプの拡張子名を取得します。 |
| getExtensions() | このタイプの拡張子名一覧を取得します。 |
| getFileFormatType() | ファイル形式のタイプを取得します |
| getFormatByExtension(String extensionName) | 拡張子名から優先されるファイル形式を取得します。拡張子名はドット (’.’) で始まる必要があります。 |
| getFormats() | すべてのサポートされている形式にアクセスする |
| getVersion() | ファイル形式のバージョンを取得します |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | 形式を文字列に変換する |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
AMF
public static final FileFormat AMF
積層造形ファイル形式
ASE
public static final FileFormat ASE
3D Studio Max の ASCII シーンエクスポーター形式。
ASPOSE3D_WEB
public static final FileFormat ASPOSE3D_WEB
Aspose.3D Web 形式。
BLENDER
public static final FileFormat BLENDER
Blender の 3D ファイル形式
COLLADA
public static final FileFormat COLLADA
Collada ファイル形式
DISCREET3DS
public static final FileFormat DISCREET3DS
3D Studio のファイル形式
DRACO
public static final DracoFormat DRACO
Google Draco メッシュ
DXF
public static final FileFormat DXF
AutoCAD DXF
FBX6100ASCII
public static final FileFormat FBX6100ASCII
ASCII FBX ファイル形式(バージョン 6.1.0)
FBX6100_BINARY
public static final FileFormat FBX6100_BINARY
バイナリ FBX ファイル形式(バージョン 6.1.0)
FBX7200ASCII
public static final FileFormat FBX7200ASCII
ASCII FBX ファイル形式(バージョン 7.2.0)
FBX7200_BINARY
public static final FileFormat FBX7200_BINARY
バイナリ FBX ファイル形式(バージョン 7.2.0)
FBX7300ASCII
public static final FileFormat FBX7300ASCII
ASCII FBX ファイル形式(バージョン 7.3.0)
FBX7300_BINARY
public static final FileFormat FBX7300_BINARY
バイナリ FBX ファイル形式(バージョン 7.3.0)
FBX7400ASCII
public static final FileFormat FBX7400ASCII
ASCII FBX ファイル形式(バージョン 7.4.0)
FBX7400_BINARY
public static final FileFormat FBX7400_BINARY
バイナリ FBX ファイル形式(バージョン 7.4.0)
FBX7500ASCII
public static final FileFormat FBX7500ASCII
ASCII FBX ファイル形式、バージョン 7.5.0
FBX7500_BINARY
public static final FileFormat FBX7500_BINARY
Binary FBX ファイル形式、バージョン 7.5.0
FBX7600ASCII
public static final FileFormat FBX7600ASCII
ASCII FBX ファイル形式、バージョン 7.6.0
FBX7600_BINARY
public static final FileFormat FBX7600_BINARY
Binary FBX ファイル形式、バージョン 7.6.0
FBX7700ASCII
public static final FileFormat FBX7700ASCII
ASCII FBX ファイル形式、バージョン 7.7.0
FBX7700_BINARY
public static final FileFormat FBX7700_BINARY
Binary FBX ファイル形式、バージョン 7.7.0
GLTF
public static final FileFormat GLTF
Khronos Group の glTF
GLTF2
public static final FileFormat GLTF2
Khronos Group の glTF バージョン 2.0
GLTF2_BINARY
public static final FileFormat GLTF2_BINARY
Khronos Group の glTF バージョン 2.0
GLTF_BINARY
public static final FileFormat GLTF_BINARY
Khronos Group の glTF(バイナリ形式)
HTML5
public static final FileFormat HTML5
HTML5 ファイル
IFC
public static final FileFormat IFC
ISO 16739-1 Industry Foundation Classes データモデル。
MAYAASCII
public static final FileFormat MAYAASCII
Autodesk Maya(ASCII 形式)
MAYA_BINARY
public static final FileFormat MAYA_BINARY
Autodesk Maya(バイナリ形式)
MICROSOFT3MF
public static final Microsoft3MFFormat MICROSOFT3MF
Microsoft 3D Manufacturing Format
PCD
public static final FileFormat PCD
PCL Point Cloud Data ファイル(ASCII モード)
PCD_BINARY
public static final FileFormat PCD_BINARY
PCL Point Cloud Data ファイル(バイナリモード)
public static final PdfFormat PDF
Adobe の Portable Document Format
PLY
public static final PlyFormat PLY
Polygon File Format または Stanford Triangle Format
RVM_BINARY
public static final RvmFormat RVM_BINARY
AVEVA Plant Design Management System Model(バイナリ形式)
RVM_TEXT
public static final RvmFormat RVM_TEXT
AVEVA Plant Design Management System Model(テキスト形式)
SIEMENSJT8
public static final FileFormat SIEMENSJT8
Siemens JT ファイル バージョン 8
SIEMENSJT9
public static final FileFormat SIEMENSJT9
Siemens JT ファイル バージョン 9
STLASCII
public static final FileFormat STLASCII
ASCII STL ファイル形式
STL_BINARY
public static final FileFormat STL_BINARY
Binary STL ファイル形式
UNIVERSAL3D
public static final FileFormat UNIVERSAL3D
Universal3D ファイル形式
USD
public static final FileFormat USD
ユニバーサルシーン記述
USDA
public static final FileFormat USDA
ASCII形式のユニバーサルシーン記述。
USDZ
public static final FileFormat USDZ
圧縮されたユニバーサルシーン記述
VRML
public static final FileFormat VRML
バーチャルリアリティモデリング言語
WAVEFRONTOBJ
public static final FileFormat WAVEFRONTOBJ
Wavefront の Obj ファイル形式
XYZ
public static final FileFormat XYZ
Xyz 点群ファイル
X_BINARY
public static final FileFormat X_BINARY
バイナリ形式の DirectX X ファイル
X_TEXT
public static final FileFormat X_TEXT
バイナリ形式の DirectX X ファイル
ZIP
public static final FileFormat ZIP
他の 3D ファイル形式を含む Zip アーカイブ。
createLoadOptions()
public LoadOptions createLoadOptions()
このファイル形式のデフォルト読み込みオプションを作成する
Returns: LoadOptions - A default load option for current format
createSaveOptions()
public SaveOptions createSaveOptions()
このファイル形式のデフォルト保存オプションを作成する
Returns: SaveOptions - A default save option for current format
decode(Stream stream)
public Geometry decode(Stream stream)
指定されたストリームから点群またはメッシュをデコードします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| stream | Stream | 入力ストリーム |
Returns: Geometry - A Mesh or PointCloud instance Example: The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.decode("sphere.ply")
decode(Stream stream, PlyLoadOptions opt)
public Geometry decode(Stream stream, PlyLoadOptions opt)
指定されたストリームから点群またはメッシュをデコードします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| stream | Stream | 入力ストリーム |
| opt | PlyLoadOptions | PLY フォーマットのロードオプション |
Returns: Geometry - A Mesh or PointCloud instance Example: The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.decode("sphere.ply")
decode(String fileName)
public Geometry decode(String fileName)
指定されたストリームから点群またはメッシュをデコードします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String | 入力ストリーム |
Returns: Geometry - A Mesh or PointCloud instance Example: The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.decode("sphere.ply")
decode(String fileName, PlyLoadOptions opt)
public Geometry decode(String fileName, PlyLoadOptions opt)
指定されたストリームから点群またはメッシュをデコードします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String | 入力ストリーム |
| opt | PlyLoadOptions | PLY フォーマットのロードオプション |
Returns: Geometry - A Mesh or PointCloud instance Example: The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.decode("sphere.ply")
detect(Stream stream, String fileName)
public static FileFormat detect(Stream stream, String fileName)
データストリームからファイル形式を検出します。マジックヘッダーがないタイプを推測するために、ファイル名はオプションです。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| stream | Stream | 検出するデータを含むストリーム |
| fileName | java.lang.String | データの元のファイル名(ヒントとして使用)。 |
Returns: FileFormat - The FileFormat instance of the detected type or null if failed.
detect(String fileName)
public static FileFormat detect(String fileName)
ファイル名からファイル形式を検出します。ファイルは読み取り可能である必要があり、Aspose.3D はファイルヘッダーを通じて形式を検出できます。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| fileName | java.lang.String | ファイル形式を検出するファイルへのパス。 |
Returns: FileFormat - The FileFormat instance of the detected type or null if failed.
encode(Entity entity, Stream stream)
public void encode(Entity entity, Stream stream)
エンティティをエンコードし、結果をストリームに保存します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| entity | Entity | エンコードするエンティティ |
| stream | Stream |
Mesh mesh = (new Sphere()).toMesh();
//encode mesh into PLY format
FileFormat.PLY.encode(mesh, "sphere.ply");
``` |
### encode(Entity entity, Stream stream, PlySaveOptions opt) {#encode-com.aspose.threed.Entity-com.aspose.threed.Stream-com.aspose.threed.PlySaveOptions-}
public void encode(Entity entity, Stream stream, PlySaveOptions opt)
エンティティをエンコードし、結果をストリームに保存します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| entity | [Entity](../../com.aspose.threed/entity) | エンコードするエンティティ |
| stream | [Stream](../../com.aspose.threed/stream) | 書き込むストリーム(このメソッドはこのストリームを閉じません) |
| | opt | [PlySaveOptions](../../com.aspose.threed/plysaveoptions) | 保存オプション **Example:** 次のコードは、メッシュを PLY ファイルにエンコードする方法を示しています: |
Mesh mesh = (new Sphere()).toMesh(); //encode mesh into PLY format FileFormat.PLY.encode(mesh, “sphere.ply”);
### encode(Entity entity, String fileName) {#encode-com.aspose.threed.Entity-java.lang.String-}
public void encode(Entity entity, String fileName)
エンティティをエンコードし、結果を外部ファイルに保存します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| entity | [Entity](../../com.aspose.threed/entity) | エンコードするエンティティ |
| | fileName | java.lang.String | 書き込むファイル **Example:** 次のコードは、メッシュを PLY ファイルにエンコードする方法を示しています: |
Mesh mesh = (new Sphere()).toMesh(); //encode mesh into PLY format FileFormat.PLY.encode(mesh, “sphere.ply”);
### encode(Entity entity, String fileName, PlySaveOptions opt) {#encode-com.aspose.threed.Entity-java.lang.String-com.aspose.threed.PlySaveOptions-}
public void encode(Entity entity, String fileName, PlySaveOptions opt)
エンティティをエンコードし、結果を外部ファイルに保存します。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| entity | [Entity](../../com.aspose.threed/entity) | エンコードするエンティティ |
| fileName | java.lang.String | 書き込むファイル |
| | opt | [PlySaveOptions](../../com.aspose.threed/plysaveoptions) | 保存オプション **Example:** 次のコードは、メッシュを PLY ファイルにエンコードする方法を示しています: |
Mesh mesh = (new Sphere()).toMesh(); //encode mesh into PLY format FileFormat.PLY.encode(mesh, “sphere.ply”);
### equals(Object arg0) {#equals-java.lang.Object-}
public boolean equals(Object arg0)
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | java.lang.Object | |
**Returns:**
boolean
### getCanExport() {#getCanExport--}
public boolean getCanExport()
Aspose.3D が現在のファイル形式へのシーンエクスポートをサポートしているかどうかを取得します。
**Returns:**
boolean - Aspose.3D が現在のファイル形式へのシーンエクスポートをサポートしているかどうか。 **Example:** 以下のコードは、指定された形式へのエクスポートがサポートされているかどうかを確認する方法を示しています。
var outputFormat = “.glb”; var format = FileFormat.getFormatByExtension(outputFormat); if (format.getCanExport()) System.out.printf(“Can export to %s”, outputFormat);
### getCanImport() {#getCanImport--}
public boolean getCanImport()
Aspose.3D が現在のファイル形式からのシーンインポートをサポートしているかどうかを取得します。
**Returns:**
boolean - Aspose.3D が現在のファイル形式からのシーンインポートをサポートしているかどうか。 **Example:** 以下のコードは、指定された形式からのインポートがサポートされているかどうかを確認する方法を示しています。
var outputFormat = “.glb”; var format = FileFormat.getFormatByExtension(outputFormat); if (format.getCanImport()) System.out.printf(“Can import from %s”, outputFormat);
### getClass() {#getClass--}
public final native Class getClass()
**Returns:**
java.lang.Class<?>
### getContentType() {#getContentType--}
public FileContentType getContentType()
ファイル形式のコンテンツタイプを取得します
**Returns:**
[FileContentType](../../com.aspose.threed/filecontenttype) - file format content type **Example:**
var format = FileFormat.MAYA_BINARY; if (format.getContentType() == FileContentType.BINARY) System.out.printf("%s is binary format", format); else System.out.printf("%s is text-based format", format);
### getExtension() {#getExtension--}
public String getExtension()
このタイプの拡張子名を取得します。
**Returns:**
java.lang.String - この型の拡張子名。 **Example:**
var format = FileFormat.MAYA_BINARY; System.out.printf(“Extension of %s is %s”, format, format.getExtension());
### getExtensions() {#getExtensions--}
public String[] getExtensions()
このタイプの拡張子名一覧を取得します。
**Returns:**
java.lang.String[] - この型の拡張子名の一覧。
### getFileFormatType() {#getFileFormatType--}
public FileFormatType getFileFormatType()
ファイル形式のタイプを取得します
**Returns:**
[FileFormatType](../../com.aspose.threed/fileformattype) - file format type
### getFormatByExtension(String extensionName) {#getFormatByExtension-java.lang.String-}
public static FileFormat getFormatByExtension(String extensionName)
拡張子名から優先されるファイル形式を取得します。拡張子名はドット ('.') で始まる必要があります。
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| extensionName | java.lang.String | 拡張子名はクエリのために '.' で始まります。 |
**Returns:**
[FileFormat](../../com.aspose.threed/fileformat) - Instance of [FileFormat](../../com.aspose.threed/fileformat), otherwise null returned. **Example:** The following code shows how to save scene to memory using specified format
Scene scene = new Scene(new Box()); var outputFormat = “.glb”; var format = FileFormat.getFormatByExtension(outputFormat); var output = new ByteArrayOutputStream(); scene.save(output);
### getFormats() {#getFormats--}
public static List
すべてのサポートされている形式にアクセスする
**Returns:**
java.util.List<com.aspose.threed.FileFormat> - サポートされているすべての形式へのアクセス
### getVersion() {#getVersion--}
public Version getVersion()
ファイル形式のバージョンを取得します
**Returns:**
[Version](../../com.aspose.threed/version) - file format version
### hashCode() {#hashCode--}
public native int hashCode()
**Returns:**
int
### notify() {#notify--}
public final native void notify()
### notifyAll() {#notifyAll--}
public final native void notifyAll()
### toString() {#toString--}
public String toString()
形式を文字列に変換する
**Returns:**
java.lang.String - オブジェクト文字列
### wait() {#wait--}
public final void wait()
### wait(long arg0) {#wait-long-}
public final void wait(long arg0)
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long | |
### wait(long arg0, int arg1) {#wait-long-int-}
public final void wait(long arg0, int arg1)
**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long | |
| arg1 | int | |