Class CapsuleGenerator

java.lang.Object
X3dForAdvancedModeling.GeometricShapes.CapsuleGenerator

public class CapsuleGenerator extends Object

Capsule has top and bottom hemispheres with connected sides, with adjustable parameters in the contained Script fields. A Script node computes all coordIndex and Coordinate point values. X3D source for the produced capsule also appears on the player console.

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

Scene Meta Information
meta tags   Document Metadata
title CapsuleGenerator.x3d
description Capsule has top and bottom hemispheres with connected sides, with adjustable parameters in the contained Script fields. A Script node computes all coordIndex and Coordinate point values. X3D source for the produced capsule also appears on the player console.
created 13 October 2014
modified 20 October 2019
creator Don Brutzman
reference CapsuleGenerator.log.txt
reference CapsuleComparison.x3d
info InstantReality and BSContact work
TODO H3DViewer: missing Script appinfo and new SFInt32 when running CapsuleGenerator.js; got bugtracker?
reference https://en.wikipedia.org/wiki/Capsule_(geometry)
reference https://en.wiktionary.org/wiki/capsule
info This tessellation is not geodesic because the polygons are computed using rectangular quadrilaterals and vertical levels rather than triangulated shortest paths.
reference https://en.wiktionary.org/wiki/geodesic
reference https://en.wiktionary.org/wiki/geodesic_dome
reference https://en.wikipedia.org/wiki/Geodesic
reference https://en.wikipedia.org/wiki/Geodesic_grid
reference https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/NsidedPolygon.java
reference https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemisphereExample.x3d
reference https://savage.nps.edu/Savage/CommunicationsAndSensors/HalfDome/HemispherePrototype.x3d
identifier https://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/CapsuleGenerator.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

    • CapsuleGenerator

      public CapsuleGenerator()
      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:
      CapsuleGenerator 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