If you want to deform the shape along the axis, you need access to the coordinates.
Add the shape to a Transformgroup and center it (by translating), so that the center of the shape is at the center of the axis system. Then do something like
 
for example scaling on the x axis:
 
get shape's geometry, then
Point3f p=new Point3f();
for (int i=0; i<geometry.getVertexCount(); i++){
    geometry.getCoordinate(i,p);
    p.x=p.x*scale_x;
    geometry.setCoordinate(i,p);
};
 
Cristian
 
<<Thanks! Cristian,
It looks like I can not scale the cone one direction in dependent from the
other direction. the setScale is limited to uniform scale matrix in the specs.>>
 

Reply via email to