- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.3
(Moderators:
Waterman
,
Mithrandir_
,
beyonder
,
ZaPPZion
) >>
Volumetric calculations and topology
Pages: [
1
]
« previous
next »
Print
Author
Topic: Volumetric calculations and topology (Read 1327 times)
wildsurfer
Community Member
Posts: 82
Volumetric calculations and topology
«
on:
May 12, 2010, 02:40:05 AM »
Hi,
I have a few questions:
1) How can we calculate the volume and/or surface area of a mesh during runtime?
2) How can we enforce the topological rule on the mesh? (e.g. if a wall is partially destroy, the "leftover" wall still should be a solid mesh instead of disjointed polygons)
Thanx!
Logged
wildsurfer
Mithrandir
Community Member
Posts: 325
Re: Volumetric calculations and topology
«
Reply #1 on:
May 12, 2010, 06:55:12 AM »
There are no such functions in TV3D but you can do it manually.
You can iterate through all polygons and use GetTriangleInfo to get vertices and GetVertex to get their positions.
1) Having positions of vertices of each polygin makes it straight forward to calculate surface area and volume. I'm sure you can find some algorithms on that.
2)This can be a tricky thing to do but again there must be some articles about how to do this somewhere online. You can then add new faces and vertices using AddVertex and AddFace to close up the mesh.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Game Development
-----------------------------
Projects
-----------------------------
=> In-Development
=> Showcase
=> Recruitment
=> Announcements
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.5
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
-----------------------------
TV3D SDK
-----------------------------
===> Shader Development
===> Content Pipeline
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks