Hi,

To change the dimensions of an existing colorcube you can add a scaling
transformation above it.

( xscale,      0,      0,        0,
0,             yscale,  0,        0,
0,                 0,     zscale, 0
0,                 0,       0         1)

To do the more general task of changing the geometry while compiled/live you
need to set the capabilities "ALLOW_GEOMETRY_READ" and "ALLOW_GEOMETRY_WRITE"
on your Shape3D object.

Also, I believe you have to make all your changes from within a behavior,
otherwise Java 3D may get confused.

From,

Greg.


Chris Gates wrote:

> Hello everyone,
>
> I pose a question:
>
> I have a regular colorCube in a scene.  How can I change the size of the
> cube with only the keyboard?  I don't mean to zoom in and out, I mean to
> change the dimensions of the cube itself.  The issue I have is how can I
> change basic parameters of an object without re-compiling?
>
> Thanks in advance,
> Chris
> ___________________________
> Interactive Graphics of Genetic Data
> Department of Biology
> University of Texas at Arlington
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to