First, please do not send questions to just my email
address. Send questions to visad-list@xxxxxxxxxxxxx.
Your problem is simply that your spatial ScalarMaps
were all messed up, with both Y and Z mapped to X, and
X mapped to both Y and Z:
display.addMap(new ScalarMap(RealType.YAxis, Display.XAxis));
display.addMap(new ScalarMap(RealType.XAxis, Display.YAxis));
display.addMap(new ScalarMap(RealType.ZAxis, Display.XAxis));
display.addMap(new ScalarMap(RealType.XAxis, Display.ZAxis));
Change this to:
display.addMap(new ScalarMap(RealType.YAxis, Display.YAxis));
display.addMap(new ScalarMap(RealType.XAxis, Display.XAxis));
display.addMap(new ScalarMap(RealType.ZAxis, Display.ZAxis));
Jing Zhang wrote:
>
> Hi Bill,
>
> We have question about drawing gridline. In the attachment, you can find
> three java files. We draw gridline on X-Y plan in the first one. We
> draw gridline on X-Z plan in the second one. However, when we want to draw
> gridline on X-Y and X-Z plan separately in the third one, the
> gridline merge into a slope gridline. This is not what we want.
> Could you please tell us how can we draw gridline separately.
>
> Very appreciate and Happy New Year!
>
> 3D Research Group (NC A&T)
>
> ----------------------------------------------------------------------------------------------------------------------------------------------
> The new MSN 8 is here: Try it free* for 2 months
>
> Name: Rivers1.java
> Rivers1.java Type: unspecified type (application/octet-stream)
> Encoding: BASE64
>
> Name: Rivers2.java
> Rivers2.java Type: unspecified type (application/octet-stream)
> Encoding: BASE64
>
> Name: Rivers3.java
> Rivers3.java Type: unspecified type (application/octet-stream)
> Encoding: BASE64