Jump to content

Using Meshes - Get transformed Vertex Array?


Recommended Posts

Hello,

My goal is to get the current Vertex Array out of my 3D-Picture, for example after a rotation. Please consider the example "Using Meshes" in Labview. I tried to use a property node "SceneMesh" and from that choose "VertexArray". Please have a look at my attached screenshot.

1. Is it even possible like this? Or would it just return the Vertex Array of the initial mesh, the points which it is created with?

2. In case its possible, how? Right now i recieve an error "Type mismatch: Object cannot be cast to the specified type."

Thank you for your help,

Castorp

post-24540-0-97973100-1306404950_thumb.j

Link to comment

As for the error you have to at first extract geometry from the object (using Drawable property) and then cast it down to SceneMesh.

But vertices you get this way will be always the same as they are in reference to owners frame. In order to get real position of the vertex you have to multiply it by objects transformation matrix (easy to get with property). If the object is a child of another object (which could be a child of another object) you have to go up to the root of the tree multiplying by subsequent transformation matrices.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.