package X3dForAdvancedModeling.AdditiveManufacturing;
/*
Copyright (c) 1995-2022 held by the author(s). All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of the Web3D Consortium (https://www.web3d.org)
nor the names of its contributors may be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Lighting.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Shape.*;
// Javadoc annotations follow, see below for Java source code.
/**
*
A methylxanthine naturally occurring in some beverages and also used as a pharmacological agent. Caffeine's most notable pharmacological effect is as a central nervous system stimulant, increasing alertness and producing agitation. It also relaxes SMOOTH MUSCLE, stimulates CARDIAC MUSCLE, stimulates DIURESIS, and appears to be useful in the treatment of some types of headache. Several cellular actions of caffeine have been observed, but it is not entirely clear how each contributes to its pharmacological profile. Among the most important are inhibition of cyclic nucleotide PHOSPHODIESTERASES, antagonism of ADENOSINE RECEPTORS, and modulation of intracellular calcium handling.
Related links: CaffeinePubChem2519SticksColor.java source, CaffeinePubChem2519SticksColor catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.
Scene Meta Information
meta tags |
Document Metadata |
title |
CaffeinePubChem2519SticksColor.x3d |
creator |
Darrell Hurt |
description |
A methylxanthine naturally occurring in some beverages and also used as a pharmacological agent. Caffeine's most notable pharmacological effect is as a central nervous system stimulant, increasing alertness and producing agitation. It also relaxes SMOOTH MUSCLE, stimulates CARDIAC MUSCLE, stimulates DIURESIS, and appears to be useful in the treatment of some types of headache. Several cellular actions of caffeine have been observed, but it is not entirely clear how each contributes to its pharmacological profile. Among the most important are inhibition of cyclic nucleotide PHOSPHODIESTERASES, antagonism of ADENOSINE RECEPTORS, and modulation of intracellular calcium handling. |
created |
5 April 2015 |
translated |
3 April 2017 |
modified |
20 October 2019 |
translator |
Don Brutzman |
Image |
CaffeinePubChem2519SticksColor.png |
TODO |
CaffeinePubChem2519Modifications.txt |
Image |
CaffeinePubChem2519-3dpx-001005.qr.png |
reference |
CaffeinePubChem2519Sticks.blender.stl |
reference |
originals/PubChem-2519-sticks-color.x3d |
reference |
originals/PubChem-2519-sticks-color.wrl |
reference |
originals/PubChem-2519-sticks-color.stl.zip (7.8MB uncompressed) |
reference |
https://3dprint.nih.gov/discover/3dpx-001005 |
license |
https://3dprint.nih.gov/license/public-domain |
subject |
NIH 3DPX caffeine Methyltheobromine Guaranine Cafeina Koffein Mateina 1,3,7-Trimethylxanthine Thein |
identifier |
https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/CaffeinePubChem2519SticksColor.x3d |
generator |
UCSF Chimera, http://www.cgl.ucsf.edu/chimera |
generator |
X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit |
generator |
X3D Tidy, https://www.web3d.org/x3d/stylesheets/X3dTidy.html |
generator |
X3D Validator, https://savage.nps.edu/X3dValidator |
|
This program uses the
X3D Java Scene Access Interface Library (X3DJSAIL).
It has been produced using the
X3dToJava.xslt
stylesheet to create Java source code from an .x3d
model.
* @author Darrell Hurt
*/
public class CaffeinePubChem2519SticksColor
{
/** Default constructor to create this object. */
public CaffeinePubChem2519SticksColor ()
{
initialize();
}
/** Create and initialize the X3D model for this object. */
public final void initialize()
{
x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_3_3)
.setHead(new head()
.addMeta(new meta().setName(meta.NAME_TITLE ).setContent("CaffeinePubChem2519SticksColor.x3d"))
.addMeta(new meta().setName(meta.NAME_CREATOR ).setContent("Darrell Hurt"))
.addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("A methylxanthine naturally occurring in some beverages and also used as a pharmacological agent. Caffeine's most notable pharmacological effect is as a central nervous system stimulant, increasing alertness and producing agitation. It also relaxes SMOOTH MUSCLE, stimulates CARDIAC MUSCLE, stimulates DIURESIS, and appears to be useful in the treatment of some types of headache. Several cellular actions of caffeine have been observed, but it is not entirely clear how each contributes to its pharmacological profile. Among the most important are inhibition of cyclic nucleotide PHOSPHODIESTERASES, antagonism of ADENOSINE RECEPTORS, and modulation of intracellular calcium handling."))
.addMeta(new meta().setName(meta.NAME_CREATED ).setContent("5 April 2015"))
.addMeta(new meta().setName(meta.NAME_TRANSLATED ).setContent("3 April 2017"))
.addMeta(new meta().setName(meta.NAME_MODIFIED ).setContent("20 October 2019"))
.addMeta(new meta().setName(meta.NAME_TRANSLATOR ).setContent("Don Brutzman"))
.addMeta(new meta().setName(meta.NAME_IMAGE ).setContent("CaffeinePubChem2519SticksColor.png"))
.addMeta(new meta().setName(meta.NAME_TODO ).setContent("CaffeinePubChem2519Modifications.txt"))
.addMeta(new meta().setName(meta.NAME_IMAGE ).setContent("CaffeinePubChem2519-3dpx-001005.qr.png"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("CaffeinePubChem2519Sticks.blender.stl"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("originals/PubChem-2519-sticks-color.x3d"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("originals/PubChem-2519-sticks-color.wrl"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("originals/PubChem-2519-sticks-color.stl.zip (7.8MB uncompressed)"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("https://3dprint.nih.gov/discover/3dpx-001005"))
.addMeta(new meta().setName(meta.NAME_LICENSE ).setContent("https://3dprint.nih.gov/license/public-domain"))
.addMeta(new meta().setName(meta.NAME_SUBJECT ).setContent("NIH 3DPX caffeine Methyltheobromine Guaranine Cafeina Koffein Mateina 1,3,7-Trimethylxanthine Thein"))
.addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://x3dgraphics.com/examples/X3dForAdvancedModeling/AdditiveManufacturing/CaffeinePubChem2519SticksColor.x3d"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("UCSF Chimera, http://www.cgl.ucsf.edu/chimera"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("X3D Tidy, https://www.web3d.org/x3d/stylesheets/X3dTidy.html"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("X3D Validator, https://savage.nps.edu/X3dValidator")))
.setScene(new Scene()
.addChild(new NavigationInfo().setHeadlight(false))
.addChild(new Background().setSkyColor(new MFColor(new double[] {1.0,1.0,1.0})))
.addChild(new WorldInfo("ModelMetadata").setTitle("CaffeinePubChem2519SticksColor.x3d")
.addComments(" xmlns:chimera='http://www.cgl.ucsf.edu/chimera' ")
.addComments(" ")
.addComments(" ")
.setMetadata(new MetadataSet().setName("xmlns:chimera").setReference("http://www.cgl.ucsf.edu/chimera")
.setMetadata(new MetadataString().setName("comment").setValue(new String[] {"X3D profile limits on number of elements/colors/etc. were ignored"}))
.setMetadata(new MetadataSet().setName("chimera:WindowSize")
.setMetadata(new MetadataInteger().setName("height").setValue(new int[] {512}))
.setMetadata(new MetadataInteger().setName("width").setValue(new int[] {512})))
.setMetadata(new MetadataSet().setName("chimera:DepthCue")
.setMetadata(new MetadataFloat().setName("color").setValue(new double[] {1.0,1.0,1.0}))
.setMetadata(new MetadataFloat().setName("range").setValue(new double[] {35.2169,40.437})))))
.addChild(new Viewpoint().setDescription("view 0").setCenterOfRotation(0.29605,-0.11545,0.0006).setFieldOfView(0.436332).setPosition(0.29605,-0.11545,35.2175))
.addChild(new DirectionalLight().setDirection(-0.0,-0.0,-1.0).setIntensity(0.646154))
.addChild(new DirectionalLight().setDirection(-0.911685,-0.341882,-0.227921).setIntensity(0.361231))
.addChild(new DirectionalLight().setDirection(0.408248,0.408248,0.816497))
.addChild(new DirectionalLight().setAmbientIntensity(0.15).setIntensity(0.0))
.addChild(new Group()
.addChild(new Transform().setBboxCenter(0.29605,-0.11545,0.0006).setBboxSize(9.8063,8.5611,3.7996)
.setMetadata(new MetadataString().setName("model name").setValue(new String[] {"2519"}))
.addChild(new Transform().setTranslation(0.47,2.5688,0.0006)
.addChild(new Shape()
.setAppearance(new Appearance("l0")
.setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(1.0,0.0509804,0.0509804).setShininess(0.484375).setSpecularColor(0.255,0.255,0.255)))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-3.1271,-0.4436,-0.0003)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l0"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-0.9686,-1.3125,0.0)
.addChild(new Shape()
.setAppearance(new Appearance("l1")
.setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(0.188235,0.313725,0.972549).setShininess(0.484375).setSpecularColor(0.255,0.255,0.255)))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(2.2182,0.1412,-0.0003)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.3477,1.0797,-0.0001)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(1.4119,-1.9372,0.0002)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(0.8579,0.2592,-0.0008)
.addChild(new Shape()
.setAppearance(new Appearance("l2")
.setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(0.565,0.565,0.565).setShininess(0.484375).setSpecularColor(0.255,0.255,0.255)))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(0.3897,-1.0264,-0.0004)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(0.0307,1.422,-0.0006)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.9061,-0.2495,-0.0004)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(2.5032,-1.1998,0.0003)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.4276,-2.696,0.0008)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(3.1926,1.2061,0.0003)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-2.2969,2.1881,0.0007)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(3.5163,-1.5787,0.0008)
.addChild(new Shape()
.setAppearance(new Appearance("l3")
.setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(1.0,1.0,1.0).setShininess(0.484375).setSpecularColor(0.255,0.255,0.255)))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.0451,-3.1973,-0.8937)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-2.5186,-2.7596,0.0011)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.0447,-3.1963,0.8957)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(4.1992,0.7801,0.0002)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(3.0468,1.8092,-0.8992)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(3.0466,1.8083,0.9004)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-1.8087,3.1651,-0.0003)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-2.9322,2.1027,0.8881)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setTranslation(-2.9346,2.1021,-0.8849)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Sphere().setRadius(0.8))))
.addChild(new Transform().setRotation(-0.00273161,0.0,0.999996,2.77577).setTranslation(0.367773,2.30193,0.000320755)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l0"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.571551).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.00273161,0.0,-0.999996,0.365825).setTranslation(0.148123,1.72853,-0.000279245)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.656511).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-8.19e-05,0.0,-1.0,1.41315).setTranslation(-2.84297,-0.398432,-0.00032327)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l0"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.5754).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(8.19001e-05,-0.0,1.0,1.72845).setTranslation(-2.23247,-0.301382,-0.00037327)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.660932).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000294486,0.0,-1.0,1.3632).setTranslation(-0.636685,-1.24259,-9.77444e-05)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.678397).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000294486,-0.0,1.0,1.77839).setTranslation(0.0424654,-1.09954,-0.000297744)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.709707).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000426667,0.0,1.0,0.722746).setTranslation(-1.19769,-1.05274,-9.77444e-05)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.692689).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000426667,0.0,-1.0,2.41885).setTranslation(-1.66644,-0.521244,-0.000297744)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.724659).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.00174292,-0.0,0.999998,2.82125).setTranslation(-1.08076,-1.65057,0.000195489)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.712387).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.00174292,0.0,-0.999998,0.320341).setTranslation(-1.31026,-2.34232,0.000595489)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.745267).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000367566,0.0,1.0,1.48427).setTranslation(1.8858,0.170035,-0.00042218)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.667305).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000367566,0.0,-1.0,1.65733).setTranslation(1.20565,0.229035,-0.00067218)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.698104).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.00210526,0.0,-0.999998,2.93218).setTranslation(2.28784,-0.186488,-0.000153383)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.670014).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.00210526,0.0,0.999998,0.209413).setTranslation(2.43034,-0.856988,0.000146617)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.700937).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000615763,0.0,-1.0,0.741049).setTranslation(2.45631,0.40142,-0.000153383)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.705432).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000615764,0.0,1.0,2.40054).setTranslation(2.94351,0.93387,0.000146617)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.73799).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000362739,0.0,-1.0,1.32739).setTranslation(-1.01087,1.16334,-0.00022218)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.694115).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000362739,-0.0,1.0,1.8142).setTranslation(-0.321673,1.33449,-0.00047218)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.726151).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000537249,0.0,1.0,2.74388).setTranslation(-1.48415,0.754895,-0.000173308)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.704605).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000537249,0.0,-1.0,0.397715).setTranslation(-1.76335,0.0902955,-0.000323308)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.737125).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000842815,-0.0,1.0,0.70818).setTranslation(-1.57965,1.35055,9.54887e-05)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.713188).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000842815,0.0,-1.0,2.43341).setTranslation(-2.05425,1.90475,0.000495489)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.746104).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000586969,0.0,1.0,0.842965).setTranslation(1.16211,-1.71464,5.33835e-05)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.669112).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000586969,0.0,-1.0,2.29863).setTranslation(0.651014,-1.25924,-0.000246617)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.699994).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(9.16339e-05,0.0,-1.0,0.976561).setTranslation(1.67857,-1.75701,0.000224436)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l1"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.643685).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-9.16338e-05,0.0,1.0,2.16503).setTranslation(2.22422,-1.38831,0.000274436)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.673393).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000854335,-0.0,1.0,2.79233).setTranslation(0.6238,-0.3836,-0.0006)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(1.3682).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000241779,-0.0,1.0,0.618327).setTranslation(0.4443,0.8406,-0.0007)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(1.42701).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000493535,0.0,-1.0,1.92869).setTranslation(2.82214,-1.31908,0.000457407)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.68103).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000493535,0.0,1.0,1.2129).setTranslation(3.32869,-1.50853,0.000707407)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.400606).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.919464,0.0,-0.393175,2.0466).setTranslation(-1.30718,-2.85382,-0.280802)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.689074).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.919464,-0.0,0.393175,1.09499).setTranslation(-1.11593,-3.10447,-0.728052)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.405338).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.000274977,-0.0,1.0,1.62903).setTranslation(-1.77106,-2.71602,0.000894444)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.688092).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.000274977,0.0,-1.0,1.51257).setTranslation(-2.31656,-2.74782,0.00104444)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.40476).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.919379,0.0,-0.393374,2.04557).setTranslation(-1.30706,-2.8535,0.282528)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.68908).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.919379,0.0,0.393374,1.09602).setTranslation(-1.11561,-3.10365,0.729978)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.405341).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-9.93443e-05,0.0,-1.0,1.97115).setTranslation(3.50949,1.07199,0.000268519)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.688206).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(9.93443e-05,-0.0,1.0,1.17045).setTranslation(4.01279,0.858989,0.000218519)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.404827).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.987117,0.0,0.160002,0.986139).setTranslation(3.1467,1.39596,-0.282876)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.688023).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.987117,0.0,-0.160002,2.15545).setTranslation(3.0738,1.69751,-0.732626)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.40472).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.987099,-0.0,0.160111,0.987141).setTranslation(3.14664,1.39568,0.283665)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.688039).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.987099,0.0,-0.160112,2.15445).setTranslation(3.07364,1.69678,0.733715)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.404729).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.00204834,0.0,-0.999998,0.463403).setTranslation(-2.14321,2.49567,0.000385185)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.687672).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.00204834,-0.0,0.999998,2.67819).setTranslation(-1.89911,2.98417,-0.000114815)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.404513).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.813108,-0.0,0.582113,1.64889).setTranslation(-2.4969,2.16121,0.280067)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.689258).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.813108,0.0,-0.582113,1.49271).setTranslation(-2.81455,2.11851,0.723767)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.405446).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(-0.811505,0.0,0.584346,1.64944).setTranslation(-2.49766,2.16103,-0.2781)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l2"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.689249).setRadius(0.8).setTop(false))))
.addChild(new Transform().setRotation(0.811505,0.0,-0.584346,1.49215).setTranslation(-2.81651,2.11803,-0.7209)
.addChild(new Shape()
.setAppearance(new Appearance().setUSE("l3"))
.setGeometry(new Cylinder().setBottom(false).setHeight(0.405441).setRadius(0.8).setTop(false)))))));
}
// end of initialize() method
/** The initialized model object, created within initialize() method. */
private X3D x3dModel;
/**
* Provide a
* shallow copy
* of the X3D model.
* @see X3D
* @return CaffeinePubChem2519SticksColor model
*/
public X3D getX3dModel()
{
return x3dModel;
}
/**
* Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
* @param args array of input parameters, provided as arguments
* @see X3D.handleArguments(args)
* @see X3D.validationReport()
* @see CommandLine
* @see CommandLine.USAGE
* @see ConfigurationProperties
*/
public static void main(String args[])
{
X3D thisExampleX3dModel = new CaffeinePubChem2519SticksColor().getX3dModel();
boolean hasArguments = (args != null) && (args.length > 0);
boolean validate = true; // default
boolean argumentsLoadNewModel = false;
String fileName = new String();
if (args != null)
{
for (String arg : args)
{
if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
{
validate = true; // making sure
}
if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
{
argumentsLoadNewModel = true;
fileName = arg;
}
}
}
if (argumentsLoadNewModel)
System.out.println("WARNING: \"X3dForAdvancedModeling.AdditiveManufacturing.CaffeinePubChem2519SticksColor\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
else if (hasArguments) // if no arguments provided, this method produces usage warning
thisExampleX3dModel.handleArguments(args);
if (validate)
{
System.out.print("Java program \"X3dForAdvancedModeling.AdditiveManufacturing.CaffeinePubChem2519SticksColor\" self-validation test results: ");
String validationResults = thisExampleX3dModel.validationReport();
if (validationResults.startsWith("\n"))
System.out.println();
System.out.println(validationResults.trim());
}
}
}