Class CapsuleComparison

java.lang.Object
X3dForAdvancedModeling.GeometricShapes.CapsuleComparison

public class CapsuleComparison extends Object

CapsuleComparison shows three capsules, using polygons/lines/points rendering, each a hollow cylinder with hemispherical end caps. These models were created by CapsuleGenerator.x3d (producing X3D source on the console) with 36 numberOfPoints around horizontal perimeter, 10 vertical levels, radius 0.5 and total height of 2.

Related links: CapsuleComparison.java source, CapsuleComparison catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

Scene Meta Information
meta tags   Document Metadata
title CapsuleComparison.x3d
description CapsuleComparison shows three capsules, using polygons/lines/points rendering, each a hollow cylinder with hemispherical end caps. These models were created by CapsuleGenerator.x3d (producing X3D source on the console) with 36 numberOfPoints around horizontal perimeter, 10 vertical levels, radius 0.5 and total height of 2.
created 13 October 2014
modified 20 October 2019
reference CapsuleGenerator.x3d
reference CapsuleGenerator.js
creator Don Brutzman
hint Compare regular and wireframe rendering for a given browser to see if the polygonal quadrilaterals in the Capsule are further tesselated by the browser.
Image CapsuleComparisonRegularRendering.png
Image CapsuleComparisonWireframeRendering.png
reference https://en.wikipedia.org/wiki/Capsule_(geometry)
reference https://en.wiktionary.org/wiki/capsule
reference https://en.wikipedia.org/wiki/Platonic_solid
reference https://en.wikipedia.org/wiki/Geodesic_grid
reference http://www.kjmaclean.com/Geometry/Capsule.html
reference http://polyhedra.org/poly/show/4/capsule
reference http://www.georgehart.com/virtual-polyhedra/vp.html
info Development of this scene added new features to X3D-Edit
identifier https://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleComparison.x3d
generator X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit
license ../license.html
 

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.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor to create this object.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.web3d.x3d.jsail.Core.X3D
    Provide a shallow copy of the X3D model.
    void
    Create and initialize the X3D model for this object.
    static void
    main​(String[] args)
    Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CapsuleComparison

      public CapsuleComparison()
      Default constructor to create this object.
  • Method Details

    • initialize

      public final void initialize()
      Create and initialize the X3D model for this object.
    • getX3dModel

      public org.web3d.x3d.jsail.Core.X3D getX3dModel()
      Provide a shallow copy of the X3D model.
      Returns:
      CapsuleComparison model
      See Also:
      X3D
    • main

      public static void main(String[] args)
      Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
      Parameters:
      args - array of input parameters, provided as arguments
      See Also:
      X3D.handleArguments(args), X3D.validationReport(), CommandLine, CommandLine.USAGE, ConfigurationProperties