Blader door onze producten

Aspose.3D for .NET 19.7 Mitteilung hinweise

Verbesserungen und Änderungen

SchlüsselZusammenfassungKategorie
THREEDNET-449Problem mit Transformation werten in KnotenFeature
THREEDNET-526Fügen Sie Point Cloud-Export unterstützung in Google Draco hinzuVerbesserung
THREEDNET-524Fügen Sie Point Cloud-Import unterstützung in Google Draco hinzuVerbesserung
THREEDNET-523 Fügen Sie Point Cloud-Unterstützung im Format PLY hinzuVerbesserung

Öffentliche API und rückwärts inkompatible Änderungen

Siehe die Liste aller an der Öffentlichkeit vorgenommenen Änderungen API, z. B. hinzugefügte, umbenannte, entfernte oder veraltete Mitglieder sowie nicht abwärts kompatible Änderungen an Aspose.3D for .NET. Wenn Sie Bedenken hinsichtlich einer aufgeführten Änderung haben, geben Sie diese bitte auf derAspose.3D Unterstützung forum.

Neue Klasse Aspose.ThreeD.Entities.Point Cloud hinzugefügt

Diese Klasse erbt von Aspose.ThreeD. Entitäten. Geometrie direkt und verwendet, um eine Menge von Punkten darzustellen.

Neue Methoden hinzugefügt Decodieren der Klasse Aspose.ThreeD. Formate. Draco Format

 /// <summary>

/// Decode the point cloud or mesh from specified file name

/// </summary>

/// <param name="fileName">The file name contains the drc file</param>

/// <returns>A <see cref="Mesh"/> or <see cref="PointCloud"/> instance depends on the file content</returns>

public Geometry Decode(string fileName);

/// <summary>

/// Decode the point cloud or mesh from memory data

/// </summary>

/// <param name="data">The raw drc bytes</param>

/// <returns>A <see cref="Mesh"/> or <see cref="PointCloud"/> instance depends on the content</returns>

public Geometry Decode(byte[]data)

Beispielcode zum Entschlüsseln eines Netzes aus einer Draco-Datei direkt, ohne eine Szene zu erstellen

 var pointCloud = (PointCloud) FileFormat.Draco.Decode("pointCloud.drc");

Neue Methoden hinzugefügt Codieren zur Klasse Aspose.ThreeD. Formate. Draco Forma

 /// <summary>

/// Encode the entity to specified stream

/// </summary>

/// <param name="entity">The entity to be encoded</param>

/// <param name="stream">The stream that encoded data will be written to</param>

/// <param name="options">Extra options for encoding the point cloud</param>

public void Encode(Entity entity, Stream stream, DracoSaveOptions options = null);

/// <summary>

/// Encode the entity to specified file

/// </summary>

/// <param name="entity">The entity to be encoded</param>

/// <param name="fileName">The file name to be written</param>

/// <param name="options">Extra options for encoding the point cloud</param>

public void Encode(Entity entity, string fileName, DracoSaveOptions options = null);

/// <summary>

/// Encode the entity to Draco raw data

/// </summary>

/// <param name="entity">The entity to be encoded</param>

/// <param name="options">Extra options for encoding the point cloud</param>

/// <returns>The encoded draco data represented in bytes</returns>

public byte[]Encode(Entity entity, DracoSaveOptions options = null);

Beispielcode, um ein Kugel netz direkt in die Draco-Datei zu codieren, ohne eine Szene zu erstellen

 FileFormat.Draco.Encode(new Sphere(), "sphere.drc");

Neue Methoden Point Cloud zur Klasse Aspose.ThreeD hinzugefügt. Formate. DracoSaveOptions

 /// <summary>

/// Export the scene as point cloud, default value is false.

/// </summary>

public bool PointCloud { get; set; } 

Beispielcode zum Codieren eines Kugel netzes in die Draco-Datei als Punktwolke

 FileFormat.Draco.Encode(new Sphere(), "sphere.drc", new DracoSaveOptions() {PointCloud = true});

Neue Methoden hinzugefügt Codieren zur Klasse Aspose.ThreeD. Formate. Ply Format

 /// <summary>

/// Encode the entity and save the result into the stream.

/// </summary>

/// <param name="entity">The entity to encode</param>

/// <param name="stream">The stream to write to, this method will not close this stream</param>

/// <param name="opt">Save options</param>

public void Encode(Entity entity, Stream stream, PlySaveOptions opt = null);

/// <summary>

/// Encode the entity and save the result into an external file.

/// </summary>

/// <param name="entity">The entity to encode</param>

/// <param name="fileName">The file to write to</param>

/// <param name="opt">Save options</param>

public void Encode(Entity entity, string fileName, PlySaveOptions opt = null);

Beispielcode zum Codieren eines Netzes, um die Datei direkt zu übertragen, ohne eine Szene zu erstellen.

 FileFormat.PLY.Encode(new Sphere(), "sphere.ply");

Neue Methoden hinzugefügt Decodieren der Klasse Aspose.ThreeD. Formate. Ply Format

 /// <summary>

/// Decode a point cloud or mesh from the specified stream.

/// </summary>

/// <param name="fileName">The input stream</param>

/// <param name="opt">The load option of PLY format</param>

/// <returns>A <see cref="Mesh"/> or <see cref="PointCloud"/> instance</returns>

public Geometry Decode(string fileName, PlyLoadOptions opt = null);

/// <summary>

/// Decode a point cloud or mesh from the specified stream.

/// </summary>

/// <param name="stream">The input stream</param>

/// <param name="opt">The load option of PLY format</param>

/// <returns>A <see cref="Mesh"/> or <see cref="PointCloud"/> instance</returns>

public Geometry Decode(Stream stream, PlyLoadOptions opt = null);

Beispielcode zum Dekodieren einer Mesh-/Punktwolke aus einer Ply-Datei:

 var geom = FileFormat.PLY.Decode("sphere.ply");

Eigenschaft Point Cloud zur Klasse Aspose.ThreeD hinzugefügt. Formate. PlySaveOptions

 /// <summary>

/// Export the scene as point cloud, the default value is false.

/// </summary>

public bool PointCloud { get; set; }

Beispielcode, um den Export einer Szene zu erzwingen, um als Punktwolke zu verlagern

 FileFormat.PLY.Encode(new Sphere(), "sphere.ply", new PlySaveOptions(){PointCloud = true});


 
 Deutsch