Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Having trouble finding a starting point (MeshSimplify) #1

Open
roussec opened this issue Feb 20, 2017 · 2 comments
Open

Having trouble finding a starting point (MeshSimplify) #1

roussec opened this issue Feb 20, 2017 · 2 comments

Comments

@roussec
Copy link

roussec commented Feb 20, 2017

Hi,

I know the progressive mesh functionalty from D3DX 8/9. Unfortunately it is gone in DX10/11/12.

I am exited to possibly have it back with this library. However I am having trouble finding a starting point with MeshSimpify. When passing a mesh from the samples (e.g. mechpart.recon.m -numpts 40000 -nf 20000 -simp -prog mesh.prog -nf 500 -simp >mechpart.base.m) I am getting a file exception (RFile looks for '-' or a gzip extension).

My goal is to use the functions the library provides to simplify meshes based on our internal mesh structure (vertices with position, normal, color). How do I build a Mesh (GMesh) from vertices? I can only see a method that parses a mesh from text/stream.

Thank you.

@hhoppe
Copy link
Contributor

hhoppe commented Feb 21, 2017

Please be more precise about the problem. Are you able to run the demos?
Yes. the GMesh class (in libHh/GMesh.h) (derived from Mesh) lets you create vertices and faces, and attach string attributes.

@roussec
Copy link
Author

roussec commented Feb 21, 2017

Thank you for your quick answer. Can you please provide an example how to create a GMesh from code. E.g. having a list of triangles with vertices (positions, normals, colors).

I am able to run the compiled samples but I am for example not able to run MeshSimplify from Visual Studio with Debug Command Arguments. This gives me an exception in RFile::RFile(). However I am more interested to construct a mesh from our data structures.

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants