Yes you can do that. In our app. we have sub classed Shape3D to add method to
set wire frame point/solid appearance, intrinsic color, lit/unlit, hide/show and
so on.
Make sure to check out the spec. on notes for subclassing Node classes...
"Dvorak, Daniel J." wrote:
> I was really looking for some switch to set to get a polygon_line in the
> same Shape3D as the filled polygon. That would be a cool feature. Would it
> be possible to subclass something to get the desired effect?
>
> > -----Original Message-----
> > From: Allen McPherson [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 08, 2000 10:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JAVA3D] polygon with border
> >
> > "Dvorak, Daniel J." wrote:
> >
> > > Is there any easy way to add a border (say, 2 pixels wide) to a filled
> > > polygon without using a separate Shape3D?
> >
> > You must use two Shape3Ds. Also, you'll probably need to
> > use PolygonOffset on one of the shapes to prevent artifacts.
> > You might also look at DecalGroup, but it doesn't guarantee
> > you won't get Z-buffer artifacts.
> >
> > --
> > Allen McPherson
> > [EMAIL PROTECTED]
> >
> > ==========================================================================
> > =
> > 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".
===========================================================================
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".