|
|
Hey all; got a small problem with some spline code. Here it is.
//begin file
#include "colors.inc"
camera{location <5,30,-60>
look_at<0,0,0>
}
light_source{<1000,1000,-1000> White}
background{Gray50}
prism {
conic_sweep
linear_spline
.5, // sweep the following shape from here ...
1, // ... up through here
9, // the number of points making up the shape ...
<0,1.5>,<1.5,0>,<31,0>,<32.5,1.5>,<32.5,15>,<31,16.5>,<1.5,16.5>,<0,15>,<0,1
.5>
translate<-16.25,0,-8.25>
rotate <180, 0, 0>
translate <0, 1, 0>
scale <1,6,1>
pigment{Green}}
//end file
Now I tried this without the first translate statement, and it was not
symmetrical, it seemed to extrude the spline strangely; so I thought my
points needed to center around the origin, which is what the first translate
should do; but I noticed no change. Also; is there a way that I can specify
the angle the spline extrudes at? And this question is mainly for Ken:
1)how do you export something from AutoCad to a format POV can use, and when
you do it is mesh based correct? 2)can you still do CSG and transparent
textures and all that with such objects?
Thanks guys.
Mike Metheny
lon### [at] vtedu
http://loneshepherd.ml.org/
"When one's words are no better than silence, one should keep silent."
Post a reply to this message
|
|
|
|
Mike Metheny wrote:
>
> Well, an emerald cut is relatively simple. I was trying to do that
> intersection of planes thing but i couldn't even make a box. I fooled
> around a lot w/the planes and it was definately very screwy. But like I say
> I don't know what I'm doing. A lathe I don't think would work; as it's all
> sharp cuts and stuff. Do you know why the prism object sweeps funny like
> that rather than symmetric?
>
> Mike Metheny
> lon### [at] vtedu
> http://loneshepherd.ml.org/
>
> "When one's words are no better than silence, one should keep silent."
I have only touched on them in a general way. I played with your
code a bit but had no idea what the shape was supposed to be so
stopped.
Some excellen examples of using planes to create multi-sided
objects lie in the shapes.inc files. Shapes.old, shapes.inc,
and shapes2.inc. Everything from 4 sided to 20 sided shapes.
It's a good learning exersize. So are the brilliant cut diamonds
I referred you to in the scenes files groups which are constructed
using planes.
--
Ken Tyler
tyl### [at] pacbellnet
Post a reply to this message
|
|