|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I was playing with Anthony's ascale macro. When to shapes made with the
macro are differenced, the complet object is gone. What is the reason for
this?
#macro ascale(obj,XYZ,s1,s2)//by Anthony Bennet
union{
object{obj scale s1 clipped_by{plane{ XYZ,0}}}
object{obj scale s2 clipped_by{plane{-XYZ,0}}}
}
#end
#declare Ball=sphere{0,1 pigment{Red}}
#declare Ball=object{ascale(Ball,y,<1,1,1>,<1,2,1>)}
#declare Cyl=cylinder{-2*z,2*z,0.25}
#declare Cyl=object{ascale(Cyl,y,<1,1,1>,<1,2,1>)}
difference{
object{Ball}
object{Cyl}
pigment{Red}
}
ingo
--
Met dank aan de muze met het glazen oog.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I didn't know this, but apparently, when you clip an object, it becomes
hollow. Don't know why. Here's a new version of the macro that should work
perfectly. I tested it on you objects. What are you making?
//by Anthony Bennett <-- notice 2 Ts in Bennett :)
#macro ascale(obj,XYZ,s1,s2)
union
{
intersection {object {obj scale s1} plane{XYZ,0}}
intersection {object {obj scale s2} plane{-XYZ,0}}
}
#end
ingo wrote:
> I was playing with Anthony's ascale macro. When to shapes made with the
> macro are differenced, the complet object is gone. What is the reason for
> this?
>
> #macro ascale(obj,XYZ,s1,s2)//by Anthony Bennet
> union{
> object{obj scale s1 clipped_by{plane{ XYZ,0}}}
> object{obj scale s2 clipped_by{plane{-XYZ,0}}}
> }
> #end
>
> #declare Ball=sphere{0,1 pigment{Red}}
> #declare Ball=object{ascale(Ball,y,<1,1,1>,<1,2,1>)}
>
> #declare Cyl=cylinder{-2*z,2*z,0.25}
> #declare Cyl=object{ascale(Cyl,y,<1,1,1>,<1,2,1>)}
>
> difference{
> object{Ball}
> object{Cyl}
> pigment{Red}
> }
>
> ingo
> --
> Met dank aan de muze met het glazen oog.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Anthony Bennett wrote:
>
> I didn't know this, but apparently, when you clip an object, it becomes
> hollow. Don't know why. Here's a new version of the macro that should work
> perfectly. I tested it on you objects. What are you making?
It was implemented that way to offer an alternative to adding the
surfaces of each object in a CSG. It is usefull for making shells out
of standard solid primitives.
--
Ken Tyler
mailto://tylereng@pacbell.net
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Knew that clipping makes the object hollow, just didnt expect the whole
thing to dissapear.
I used the macro on the handle of the oilcan in the pictures group.
Sorry for the missing "t".
ingo
Ken heeft geschreven in bericht:
>Anthony Bennett wrote:
>>
>> I didn't know this, but apparently, when you clip an object, it becomes
>> hollow. Don't know why. Here's a new version of the macro that should
work
>> perfectly. I tested it on you objects. What are you making?
>
> It was implemented that way to offer an alternative to adding the
>surfaces of each object in a CSG. It is usefull for making shells out
>of standard solid primitives.
>
>--
>Ken Tyler
>
>mailto://tylereng@pacbell.net
--
Met dank aan de muze met het glazen oog.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Anthony Bennett wrote in message <37105ECB.FF63D7B6@panama.phoenix.net>...
<snip>
>//by Anthony Bennett <-- notice 2 Ts in Bennett :)
<snip>
It's annoying when that happens isn't it ;)
Matt
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hey, it's not as bad as the spelling mistakes I get in MY last name...
Birch...
Birth?
Bitch?
See what I mean? ;-)
--
Lance.
---
For the latest 3D Studio MAX plug-ins, images and much more, go to:
The Zone - http://come.to/the.zone
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Lance Birch wrote in message <37116238.0@news.povray.org>...
>Hey, it's not as bad as the spelling mistakes I get in MY last name...
>
>Birch...
>
>Birth?
>Bitch?
>
>See what I mean? ;-)
You should complain - my surname's Melly. Thankfully my forname is Tom,
rather than Simon or Giles.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I don't understand...
--
Lance.
---
For the latest 3D Studio MAX plug-ins, images and much more, go to:
The Zone - http://come.to/the.zone
For a totally different experience, visit my Chroma Key Website:
Colorblind - http://www.fortunecity.com/skyscraper/parallax/359/colorblind
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Lance Birch wrote in message <3711fa98.0@news.povray.org>...
>I don't understand...
>
Simon Melly = S.Melly on your credit card, names ending in "S" just sound
like smelly.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
OK, I get it now :)
--
Lance.
---
For the latest 3D Studio MAX plug-ins, images and much more, go to:
The Zone - http://come.to/the.zone
For a totally different experience, visit my Chroma Key Website:
Colorblind - http://www.fortunecity.com/skyscraper/parallax/359/colorblind
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|