Browse our Products

Aspose.3D for .NET 19.7 Release Notes

Improvements and Changes

KeySummaryCategory
THREEDNET-449Problem with transformation values in NodesFeature
THREEDNET-526Add point cloud export support in Google DracoEnhancement
THREEDNET-524Add point cloud import support in Google DracoEnhancement
THREEDNET-523 Add point cloud support in PLY format Enhancement

Public API and Backwards Incompatible Changes

See the list of any changes made to the public API such as added, renamed, removed or deprecated members as well as any non-backward compatible change made to Aspose.3D for .NET. If you have concerns about any change listed, please raise it on the Aspose.3D support forum.

Added new class Aspose.ThreeD.Entities.PointCloud

This class inherits from Aspose.ThreeD.Entities.Geometry directly and used to represent a set of points.

Added new methods Decode to class Aspose.ThreeD.Formats.DracoFormat

 /// <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)

Sample code to decode a mesh from a draco file directly without building a scene

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

Added new methods Encode to class Aspose.ThreeD.Formats.DracoForma

 /// <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);

Sample code to encode a sphere mesh to draco file directly without building a scene

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

Added new methods PointCloud to class Aspose.ThreeD.Formats.DracoSaveOptions

 /// <summary>

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

/// </summary>

public bool PointCloud { get; set; } 

Sample code to encode a sphere mesh to draco file as a point cloud

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

Added new methods Encode to class Aspose.ThreeD.Formats.PlyFormat

 /// <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);

Sample code to encode a mesh to ply file directly without building a scene.

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

Added new methods Decode to class Aspose.ThreeD.Formats.PlyFormat

 /// <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);

Sample code to decode a mesh/point cloud from a ply file:

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

Added property PointCloud to class Aspose.ThreeD.Formats.PlySaveOptions

 /// <summary>

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

/// </summary>

public bool PointCloud { get; set; }

Sample code to force export a scene to ply as point cloud 

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


 
 English