Drawing a Spherical Mesh
|
01-20-2014, 10:27 PM
(This post was last modified: 01-20-2014 10:31 PM by cyrille de brébisson.)
Post: #4
|
|||
|
|||
RE: Drawing a Spherical Mesh
Hello,
A couple of problems in your code... First, your coordinates are in cartesian coordinates, from -1 to 1... you should use triangle instead of triangle_p. Make sure that you set the xmin/xmax, ymin, ymax to -1, 1, -1, 1 if you want to see something... ndiv=12 correspond to a HUGE number of triangles. put it to 6 or so to get started and debug... it does work with 12, but takes a LOT of time... Code:
If it still does not work, it might be due to confusion on the triangle inputs with the other forms (for full 3D drawing). Since my version of the app is later than the one that you have, I do not remember exactly how it was before... you could try a form along the lines of: triangle(x1, y1, z2, x2, y2, z2, x3, y3, z3, c1, c2, c3); Cyrille |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Drawing a Spherical Mesh - jgreenb2 - 01-20-2014, 08:07 PM
RE: Drawing a Spherical Mesh - Han - 01-20-2014, 09:47 PM
RE: Drawing a Spherical Mesh - jgreenb2 - 01-20-2014, 09:58 PM
RE: Drawing a Spherical Mesh - cyrille de brébisson - 01-20-2014 10:27 PM
RE: Drawing a Spherical Mesh - jgreenb2 - 01-21-2014, 12:15 AM
RE: Drawing a Spherical Mesh - patrice - 01-21-2014, 01:08 AM
RE: Drawing a Spherical Mesh - patrice - 01-23-2014, 10:11 PM
|
User(s) browsing this thread: 2 Guest(s)