by Dave Andrews (19 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
Automatically Create 3D Mesh Objects
VB CAD now supports DXF Import and 3DX Output (for use in your OWN DirectX application) as well as the following functions:
DeLaunay Triangulation, Line, Chain, Polyline, Spline, 3-Point Arc, Arc, Circle, Open Ellipse, Ellipse, Grid, Snap To Endpoints, Snap To MidPoints, Snap To Intersection Points, Snap To Edit Points, Snap To Grid, Zoom In, Zoom Out, Zoom Window, Pan.
If you have ever had a need to create complex mesh objects for a 3D project - or just for fun, then this is the program to use. Just draw your closed geometry, set the fill-point (mesh center) and it will automatically triangulate your object for you using the DeLaunay trianulation method. If you have more than one object, then individually select and triagulate each object (remembering to re-set the mesh center (fill point) for each object. Then you can save the object as a ".X" file for use in other programs.
I hope that you enjoy and benefit from this project, and please take a minute to vote for me.
Thanks!
Code is here on VBC:
https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=35722&lngWId=1
Assumes
See Code Located At:
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=35722&lngWId=1
API DeclarationsSee Code Located At:
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=35722&lngWId=1
See Code Located At:
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=35722&lngWId=1