I haven't modified any classes, Cone is one of Sun's primitive classes. I simply used the full constructor to create a cone which only has 4 x-vertices and 2 y-vertices in order to create a square base for a pyramid.
Cone(float radius, float height, int primflags, int xdivision, int ydivision, Appearance ap)
Constructs a customized Cone of a given radius, height, flags, resolution (X and Y dimensions), and appearance.
hterrolle <[EMAIL PROTECTED]> wrote:
hterrolle <[EMAIL PROTECTED]> wrote:
=========================================================================== 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".i think ypou have modifed the Sphere class to make some change and create your pyramid. Make sure that the SetAppearence is use inside your pyramide method. If not i do not see. Or send the code of your clas so we could have a look at.A+=========================================================================== 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".-----Message d'origine-----
De : Dale Brett <[EMAIL PROTECTED]>
Ŕ : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : lundi 21 juin 2004 11:50
Objet : Re: [JAVA3D] Custom divison appearancesI've applied the appearance to several other objects and it works, it's only when I specify the number of divisons in a primitive's construcor that the appearance won't apply.=========================================================================== 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".
hterrolle <[EMAIL PROTECTED]> wrote:hi,does the same append when you use colorcube object. If the same append so it is your appearence which is wrong.=========================================================================== 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".-----Message d'origine-----
De : Dale Brett <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : lundi 21 juin 2004 11:26
Objet : [JAVA3D] Custom divison appearancesHi,I'm having a little trouble trying to set the appearance of primitives when I define the number of divisions in the constructor, specifically Cone; which I'm using to create a pyramid.pyramid = new Cone ( 0.5f, 0.2f, Primitive.ENABLE_APPEARANCE_MODIFY , 4, 2, pyramidAppearance );I've tried setting the overall appearance and the apperance of each sub-group after instantiation, but the cone remains the default white.Any help would be greatly appreciated.Thanks,=========================================================================== 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".
Dale