POV-Ray : Newsgroups : povray.general : Custom Solids Server Time
15 Nov 2024 23:23:13 EST (-0500)
  Custom Solids (Message 1 to 3 of 3)  
From: Spider
Subject: Custom Solids
Date: 10 Nov 1998 19:32:59
Message: <3648DAC4.BD8E10@bahnhof.se>
Hello..
I would like to know how to create a custom formed solid shape ???
I have defined 15 points, taht are the outer corners of the shape, but
now i want to know how to create a solid out of theese... Can anyone
give me help ???

Please add an email, I've had some troubles getting news messages
lately...


//Spider


Post a reply to this message

From: Ken
Subject: Re: Custom Solids
Date: 10 Nov 1998 20:20:47
Message: <3648E612.BC8F09FF@pacbell.net>
Could you post the coordinates for the shape you are
trying to describe ? It would help us if we know what
you are working with.

Ken Tyler

Spider wrote:

> Hello..
> I would like to know how to create a custom formed solid shape ???
> I have defined 15 points, taht are the outer corners of the shape, but
> now i want to know how to create a solid out of theese... Can anyone
> give me help ???
>
> Please add an email, I've had some troubles getting news messages
> lately...
>
> //Spider


Post a reply to this message

From: Spider
Subject: Re: Custom Solids
Date: 10 Nov 1998 21:18:20
Message: <3648F374.C0196CD9@bahnhof.se>
Ken wrote:
> 
> Could you post the coordinates for the shape you are
> trying to describe ? It would help us if we know what
> you are working with.
> 
> Ken Tyler

They are five points in a custom circle.... only at different positions
in Y axis...

//Spider

---8<--- cut here ---8<---

#declare rad1 = 5;
#declare rad2 = 10;

#declare top = <0,20,0>;
#declare middle = <0,15,0>;
#declare low = <0,0,0>; //0,-5,0

#declare thick = 0.1251;



#declare points = 5;
#declare angles = 2*pi / points;  //    2*pi = one circle, the angle
between the points
#declare a = ((18)*(pi/180));    //18 degrees to radians. This is so it
will only be one point up. can also be used for rotation/animation...
#declare b = ((18)*(pi/180));
#declare c = ((18)*(pi/180));
//Lets make a point of the calculations... No Y value, that's up... it
stretches in X and Z
#declare top1 = (rad1) *<cos(a+ 1*angles), 0, sin(a+ 1*angles)>+top;
#declare top2 = (rad1) *<cos(a+ 2*angles), 0, sin(a+ 2*angles)>+top;
#declare top3 = (rad1) *<cos(a+ 3*angles), 0, sin(a+ 3*angles)>+top;
#declare top4 = (rad1) *<cos(a+ 4*angles), 0, sin(a+ 4*angles)>+top;
#declare top5 = (rad1) *<cos(a+ 5*angles), 0, sin(a+ 5*angles)>+top;

#declare mid1 = (rad2) *<cos(b+ 1*angles), 0, sin(a+ 1*angles)>+middle;
#declare mid2 = (rad2) *<cos(b+ 2*angles), 0, sin(a+ 2*angles)>+middle;
#declare mid3 = (rad2) *<cos(b+ 3*angles), 0, sin(a+ 3*angles)>+middle;
#declare mid4 = (rad2) *<cos(b+ 4*angles), 0, sin(a+ 4*angles)>+middle;
#declare mid5 = (rad2) *<cos(b+ 5*angles), 0, sin(a+ 5*angles)>+middle;

#declare low1 = (rad1) *<cos(c+ 1*angles), 0, sin(a+ 1*angles)>+low;
#declare low2 = (rad1) *<cos(c+ 2*angles), 0, sin(a+ 2*angles)>+low;
#declare low3 = (rad1) *<cos(c+ 3*angles), 0, sin(a+ 3*angles)>+low;
#declare low4 = (rad1) *<cos(c+ 4*angles), 0, sin(a+ 4*angles)>+low;
#declare low5 = (rad1) *<cos(c+ 5*angles), 0, sin(a+ 5*angles)>+low;


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.