ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Mesh API
The What's New for FlexSim 7 says
Quote:
Thanks, Alan |
The Following 4 Users Say Thank You to Alan Brims For This Useful Post: | ||
Steven Hamoen (02-25-2014) |
#2
|
||||
|
||||
Please take a look into the mesh class it is well documented inside. The comments use xml (you can build your own documentation for the mesh class with doxygen, if you want).
You find the mesh.h-file at "C:\Program Files\FlexSim7\program\system\include\mesh.h" or similar. Inside this file is a short hint how to use this class: "/// <summary> A class encapsulating data and functionality for drawing geometry in OpenGL.</summary> /// <remarks> The mesh class, and its accompanying mesh api in flexscript, replace the old immediate-mode /// OpenGL rendering using glBegin() and glEnd(). To use the mesh class you initialize the mesh /// with Mesh::init() (or the mesh() command in flexscript), defining what data you are /// going to provide with each vertex, such as normals, texture coordinates, etc. Then you fill /// the mesh with vertex data, either by adding vertices one at a time with /// Mesh::addVertex() and Mesh::setVertexAttrib() (using the meshaddvertex() and meshsetvertexattrib() /// commands in flexscript), or by copying a full set of vertex data in /// with Mesh::defineVertexAttribs() </remarks>"[source: mesh.h] It's also a good idea to start with general informations about mesh (like google). I hope this is a little help, if you want to start right now |
The Following 8 Users Say Thank You to Carsten Seehafer For This Useful Post: | ||
Tom David (02-26-2014) |
#3
|
||||
|
||||
Here's a simple sample model.
And Carsten is correct. Right now the most detailed documentation is in mesh.h. Last edited by Phil BoBo; 06-08-2016 at 07:46 AM. |
The Following 5 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
RalfGruber (03-04-2014) |