|
|
"Simulator" <nomail@nomail> wrote:
> I use a visualization software that generates pov ray files. I have the
> following declared
>
> #declare VertGlyph = object { sphere {<0,0,0>,1} };
>
> #declare vertex_geometry = union
> {
> #declare vertctr=0;
> #while (vertctr < nverts0000)
> #declare vertvalue=ptscalars[verts[vertctr][1]];
> object {
> VertGlyph
> scale VertScaleFunction(vertvalue)
> translate pts[verts[vertctr][1]]
> }
> #declare vertctr = vertctr+1;
> #end
> };
>
> Then the geometry is instantiated as
> object {
> vertex_geometry
> }
>
> vertex_geometry is basically a bunch of spheres that were declared (not shown
> here). I want a blob of all these spheres. I tried the blob around the object
> within the while loop in the union. And I also tried the blob command at the
> instantiation step around vertex_geometry. In both cases I get the error that
> "Parse Error: Need at least one component in a blob."
> Is there something wrong because "union" is used? How can I achieve a blob of a
> bunch of spheres from the above code?
I think you have to replace the code like this:
#declare vertex_geometry = blob {
#declare vertctr=0;
#while (vertctr < nverts0000)
#declare vertvalue=ptscalars[verts[vertctr][1]];
sphere {
{<0,0,0>,1, 0.8
scale VertScaleFunction(vertvalue)
translate pts[verts[vertctr][1]]
}
#declare vertctr = vertctr+1;
#end
};
I hope there is no error in my code.
Post a reply to this message
|
|