Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / convert mesh to vertexdata - what is this?!

Author
Message
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 18th Jul 2014 00:35
Hi, there is a help article:

Quote: "CONVERT MESH TO VERTEXDATA
This command will

Syntax

CONVERT MESH TO VERTEXDATA Mesh Number

Parameters

Mesh Number

Integer
This value is an integer number such as 1.

Returns

This command does not return a value.

Example Code


No example code is provided for this command"


What is that thing? What is it for?

All your TGC are belong to us.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Jul 2014 00:41 Edited at: 18th Jul 2014 00:56
If you create a mesh it will have vertices and indices. This command will convert the mesh to vertices only.



mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 18th Jul 2014 00:55
I.e. it will be un-welded?

All your TGC are belong to us.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Jul 2014 01:02
Correct.

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 18th Jul 2014 01:12
thanks!

All your TGC are belong to us.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Jul 2014 01:23
You can then re-weld it. make on object from the mesh and use the command - convert object fvf.

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 18th Jul 2014 20:43
Converting do welding?!

Also, if I make object plane, vertex checklist shows six vertices.

All your TGC are belong to us.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Jul 2014 21:15
A plane object does not use indices, so that would make sense. The convert object fvf command will just use the vertex data present, it does not reduce the vertices.

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 19th Jul 2014 11:01
Then can I somehow reduce/weld vertices on manually created plain object from planes?

All your TGC are belong to us.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 19th Jul 2014 19:54
there's a couple of algorithms on the forums for welding, search for them

mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 20th Jul 2014 18:51
And as a result I will get mesh with less vertices in "lock vertexdata mode"?

All your TGC are belong to us.
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 20th Jul 2014 19:23
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 23rd Jul 2014 18:37
Thanks! I'll try to find tutorials.

All your TGC are belong to us.

Login to post a reply

Server time is: 2026-07-06 04:28:28
Your offset time is: 2026-07-06 04:28:28