Documentation of 'jvx.geom.PwBlocks' Java class
PwBlocks ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.geom

Class PwBlocks

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf


    public class PwBlocks
    extends PjWorkshop
    Workshop class to discretize any PgElementSet into blocks.
    See Also:
    Serialized Form
    Author:
    Ulrich Reitebuch
    Version:
    20.09.12, 1.02 revised (fk) Use more natural element colors, shorten source code.
    20.09.03, 1.01 revised (kp) Name of default texture block image is now a static variable.
    18.09.02, 1.00 created (ur)
    • Field Detail

      • COLOR_TABLE

        public static final java.awt.Color[] COLOR_TABLE
        Used block colors, average pixel values of block texture
      • m_defBlocks

        public static java.lang.String m_defBlocks
        Default texture for quadrilateral and higher elements.
    • Constructor Detail

      • PwBlocks

        public PwBlocks()
        Constructor.
    • Method Detail

      • setGeometry

        public void setGeometry(PgElementSet geom)
        Assign a geometry, on which the workshop operates.
      • setDiscr

        public void setDiscr(int discr)
        Set global discretization for axes.
      • setDiscr

        public void setDiscr(int dimIndex,
                             int discr)
        Set an individual discretization for one axis direction.
      • reset

        public void reset()
        Compute size of blocks.
        Overrides:
        reset in class PjWorkshop
      • blocks

        public int[][] blocks()
        Discretize the workshop's geometry to a geometry built from cubes.
        Author:
        Ulrich Reitebuch
        Version:
        18.09.02, 1.00 created (ur)
      • getUsedBlocks

        public boolean[][][] getUsedBlocks(int[][] intCoordinates)
        Get bits for being used for every cube of the discretization.
        Author:
        Ulrich Reitebuch
        Version:
        18.09.02, 1.00 created (ur)
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.