How to use mesh API?

How to use mesh API?

adrian_z
Not applicable
372 Views
3 Replies
Message 1 of 4

How to use mesh API?

adrian_z
Not applicable

How to pass the location information of four vertexs to mesh node and draw a quadrilateral?

I want to lean something about opengl in flexsim,and I want to know how to pass x,yz of vertexs to draw GL_POINTS GL_LINES GL_LINE_STRIP GL_LINE_LOOP GL_TRIANGLES GL_TRIANGLE_STRIP GL_TRIANGLE_FAN GL_QUADS GL_QUAD_STRIP GL_POLYGON

0 Likes
Accepted solutions (1)
373 Views
3 Replies
Replies (3)
Message 2 of 4

matt_long
Not applicable
Accepted solution

Here's a sample model that draws some cubes using the Mesh API. This model was built in FlexSim 7.1 but can be opened in any later version of FlexSim.

meshapisample.fsm

Message 3 of 4

adrian_z
Not applicable

Thank you very much,you just give me I really need~

0 Likes
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor
  • FlexSim Mesh commands are used in User Commands in above example model file.
  • Script windows write vertices in a label at source object.
  • Source code on Draw trigger of this source object visualizes the mesh data.
  • Textures: Phil Bobo describes in his answer here, how to add textures to a mesh.
0 Likes