You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
Is there any examples how to create mesh from pointcloud, and how to use remesh and read openvdb file?
And in this example i don't find Mesh.FromAnySupportedFormat
using MR.DotNet;
using System;
using System.Reflection;
class Program
{
static void Main(string[] args)
{
if (args.Length != 1 && args.Length != 2)
{
Console.WriteLine("Usage: {0} INPUT [OUTPUT]", Assembly.GetExecutingAssembly().GetName().Name);
return;
}
try
{
string input = args[0];
string output = args.Length == 2 ? args[1] : args[0];
var mesh = Mesh.FromAnySupportedFormat( input );
DecimateParameters dp = new DecimateParameters();
dp.strategy = DecimateStrategy.MinimizeError;
dp.maxError = 1e-5f * mesh.BoundingBox.Diagonal();
dp.tinyEdgeLength = 1e-3f;
dp.packMesh = true;
var result = [MeshDecimate](https://meshlib.io/documentation/namespaceMeshDecimate.html).Decimate(mesh, dp);
Mesh.ToAnySupportedFormat(mesh, output);
}
catch (Exception e)
{
Console.WriteLine("Error: {0}", e.Message);
}
}
}
The text was updated successfully, but these errors were encountered:
What do you mean by creating mesh from point cloud? Just triangulation or something else? Triangulation is supported in MeshLib but it is not exported to C# version yet, as well as Remesh.
FBX file format is not now supported by MeshLib. VDB contains volumetric data, not meshes. That's why it's impossible to read it with MeshLoad class. So what exactly would you like to do? Read a volume from VDB and convert it to a mesh? This is possible with MeshLib, but no voxel-related are exported to C# yet.
We can plan to add these features to C# version of MeshLib, but we need more info about your request.
Hi
Is there any examples how to create mesh from pointcloud, and how to use remesh and read openvdb file?
And in this example i don't find
Mesh.FromAnySupportedFormat
The text was updated successfully, but these errors were encountered: