CodeBase - Make Platonic Solid function
Return to the CodeBase listing
Category: Basic 3D
Version: 1.0
Information
Uploaded: 3rd May 2005 08:29
Modified: 11th May 2005 07:34
Author: Kelebrindae
Summary
A function that makes any Platonic Solid except the cube (tetrahedron, octahedron, icosahedron, dodecahedron). See the attachment for the file and a little program to test it. Works with DBC only (it uses mesh memblocks).
Full Description
Save the following code and use it as an include file. Then, call the function like this:<br /> MakePlatonicSolid(Id,type$,size#)<br /> - Id: number of the object that will be created.<br /> - type$ can be: "tetrahedron", "octahedron", "icosahedron", "dodecahedron".<br /> - size#: size of the object that will be created.<br /> This function fills a memblock with the mesh datas then creates the mesh from the memblock with "make mesh from memblock". So it doesn't work in DBpro, 'cos the mesh memblock structure is different.<br />
Comments
No comments yet.