All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.gle.CoreGLE
Summary |
public class CoreGLE extends java.lang.Object implements com.hermetica.gle.GLE { // Fields 1 public static final String VERSION; // Constructors 1 public CoreGLE(); // Methods 13 public void gleExtrusion(int, double[][], double[][], double[], int, double[][], float[][]) throws GLEException; public int gleGetJoinStyle(); public void gleHelicoid(double, double, double, double, double, double[][], double[][], double, double) throws GLEException; public void gleLathe(int, double[][], double[][], double[], double, double, double, double, double[][], double[][], double, double) throws GLEException; public void glePolyCone(int, double[][], float[][], double[]) throws GLEException; public void glePolyCylinder(int, double[][], float[][], double) throws GLEException; public void gleScrew(int, double[][], double[][], double[], double, double, double) throws GLEException; public void gleSetJoinStyle(int); public void gleSpiral(int, double[][], double[][], double[], double, double, double, double, double[][], double[][], double, double) throws GLEException; public void gleSuperExtrusion(int, double[][], double[][], double[], int, double[][], float[][], double[][][]) throws GLEException; public void gleTextureMode(int); public void gleToroid(double, double, double, double, double, double[][], double[][], double, double) throws GLEException; public void gleTwistExtrusion(int, double[][], double[][], double[], int, double[][], float[][], double[]) throws GLEException; }
Implementation of the routines exposed by the GLE library. The methods in this class interface with the GLE library perform the execution of the underlying extrusion code.
Fields |
VERSION | Summary | Top |
public static final String VERSION
Version information
Constructors |
CoreGLE | Summary | Top |
public CoreGLE()
Constructor
Methods |
gleGetJoinStyle | Summary | Top |
public int gleGetJoinStyle()
Returns the current join style for connected extruded segments
- Implements:
- gleGetJoinStyle in interface GLE
gleSetJoinStyle | Summary | Top |
public void gleSetJoinStyle(int style)
Sets the current join style for connected extruded segments.
Parameter Description style The new join style
- Implements:
- gleSetJoinStyle in interface GLE
gleTextureMode | Summary | Top |
public void gleTextureMode(int mode)
Sets the current texture coordinate generation mode
Parameter Description mode Bitwise OR of texture flags
- Implements:
- gleTextureMode in interface GLE
glePolyCylinder | Summary | Top |
public void glePolyCylinder(int npoints, double[][] pointArray, float[][] colourArray, double radius) throws GLEException
Draws a polycylinder, specified as a polyline
Parameter Description npoints The number of points in the polyline pointArray An array of points specified as ( x, y, z ) colourArray An array of colors at each polyline vertex specified as RGB radius The radius of the polycylinder
- Implements:
- glePolyCylinder in interface GLE
glePolyCone | Summary | Top |
public void glePolyCone(int npoints, double[][] pointArray, float[][] colourArray, double[] radiusArray) throws GLEException
Draws a polycone specified as a polyline with radii
Parameter Description npoints The number of points in the polyline pointArray An array of points specified as ( x, y, z ) colourArray An array of colours at each polyline vertex specified as RGB radiusArray An array containing the radii of the cone at each polyline vertex
- Implements:
- glePolyCone in interface GLE
gleExtrusion | Summary | Top |
public void gleExtrusion(int ncp, double[][] contour, double[][] contourNormal, double[] up, int npoints, double[][] pointArray, float[][] colourArray) throws GLEException
Extrudes an arbitrary 2D contour along an arbitrary 3D path.
Parameter Description ncp The number of contour points contour An array containing the points forming the 2D contour specified as ( x, y ) contourNormal An array containing the normals for each contour point up The up vector for the contour npoints The number of points in the 3D polyline pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z ) colourArray An array containing the colours at each polyline vertex specified as RGB
- Implements:
- gleExtrusion in interface GLE
gleTwistExtrusion | Summary | Top |
public void gleTwistExtrusion(int ncp, double[][] contour, double[][] contourNormal, double[] up, int npoints, double[][] pointArray, float[][] colourArray, double[] twistArray) throws GLEException
Extrudes an arbitrary 2D contour along a 3D path specifying local rotations ( twists ) as the contour is extruded.
Parameter Description ncp The number of contour points contour An array containing the points forming the 2D contour specified as ( x, y ) contourNormal An array containing the normals for each contour point up The up vector for the contour npoints The number of points in the 3D polyline pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z ) colourArray An array containing the colours at each polyline vertex specified as RGB twistArray An array containing the twists to be applied at each contour point ( in degrees )
- Implements:
- gleTwistExtrusion in interface GLE
gleSuperExtrusion | Summary | Top |
public void gleSuperExtrusion(int ncp, double[][] contour, double[][] contourNormal, double[] up, int npoints, double[][] pointArray, float[][] colourArray, double[][][] xformArray) throws GLEException
Extrudes an arbitrary 2D contour along a 3D path specifying local affine transformations as the contour is extruded.
Parameter Description ncp The number of contour points contour An array containing the points forming the 2D contour specified as ( x, y ) contourNormal An array containing the normals for each contour point up The up vector for the contour npoints The number of points in the 3D polyline pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z ) colourArray An array containing the colours at each polyline vertex specified as RGB xformArray An array containing the affine transformations to be applied at each contour point ( in degrees )
- Implements:
- gleSuperExtrusion in interface GLE
gleSpiral | Summary | Top |
public void gleSpiral(int ncp, double[][] contour, double[][] contourNormal, double[] up, double startRadius, double drdTheta, double startZ, double dzdTheta, double[][] startTransform, double[][] dTransformdTheta, double startTheta, double sweepTheta) throws GLEException
Sweep an arbitrary contour along a helical path.
Parameter Description ncp The number of contour points contour An array containing the points forming the 2D contour specified as ( x, y ) contourNormal An array containing the normals for each contour point up The up vector for the contour startRadius The spiral starts in XY plane drdTheta The change in radius per revolution startZ The starting Z value dzdTheta The change in Z per revolution startTransform The starting contour affine transformation dTransformdTheta The tangent change transformation per revolution startTheta The start angle in XY plane sweepTheta The number of degrees to spiral around
- Implements:
- gleSpiral in interface GLE
gleLathe | Summary | Top |
public void gleLathe(int ncp, double[][] contour, double[][] contourNormal, double[] up, double startRadius, double drdTheta, double startZ, double dzdTheta, double[][] startTransform, double[][] dTransformdTheta, double startTheta, double sweepTheta) throws GLEException
Sweep an arbitrary contour along a helical path. The sweep will be performed as a shear along the z-axis so that the orientation of the contour is displaced, rather than translated, as the contour is swept.
Parameter Description ncp The number of contour points contour An array containing the points forming the 2D contour specified as ( x, y ) contourNormal An array containing the normals for each contour point up The up vector for the contour startRadius The spiral starts in XY plane drdTheta The change in radius per revolution startZ The starting Z value dzdTheta The change in Z per revolution startTransform The starting contour affine transformation dTransformdTheta The tangent change transformation per revolution startTheta The start angle in XY plane sweepTheta The number of degrees to spiral around
- Implements:
- gleLathe in interface GLE
gleHelicoid | Summary | Top |
public void gleHelicoid(double rToroid, double startRadius, double drdTheta, double startZ, double dzdTheta, double[][] startTransform, double[][] dTransformdTheta, double startTheta, double sweepTheta) throws GLEException
Generalized Torus. Similar to gleSpiral() except contour is a circle. Uses gleSpiral() to draw.
Parameter Description rToroid The circle contour radius startRadius The spiral starts in XY plane drdTheta The change in radius per revolution startZ The starting Z value dzdTheta The change in Z per revolution startTransform The starting contour affine transformation dTransformdTheta The tangent change transformation per revolution startTheta The start angle in XY plane sweepTheta The number of degrees to spiral around
- Implements:
- gleHelicoid in interface GLE
See Also: gleSpiral
gleToroid | Summary | Top |
public void gleToroid(double rToroid, double startRadius, double drdTheta, double startZ, double dzdTheta, double[][] startTransform, double[][] dTransformdTheta, double startTheta, double sweepTheta) throws GLEException
Generalized Torus. Similar to gleLathe() except contour is a circle. Uses gleLathe() to draw.
Parameter Description rToroid The circle contour radius startRadius The spiral starts in XY plane drdTheta The change in radius per revolution startZ The starting Z value dzdTheta The change in Z per revolution startTransform The starting contour affine transformation dTransformdTheta The tangent change transformation per revolution startTheta The start angle in XY plane sweepTheta The number of degrees to spiral around
- Implements:
- gleToroid in interface GLE
See Also: gleSpiral
gleScrew | Summary | Top |
public void gleScrew(int ncp, double[][] contour, double[][] contourNormal, double[] up, double startz, double endz, double twist) throws GLEException
Draws screw-type shapes. Takes a contour and extrudes it along the z-axis from a start z-value of startz to and end z-value of endz. During the extrusion, it will spin the contour along the contour origin by twist degrees.
Parameter Description ncp The number of contour points contour An array containing the vertex data for the 2D contour specified as ( x, y ) contourNormal An array containing the normal data for the 2D contour up The up vector for the contour startz The start z-value for the segment endz The end z-value for the segment twist The number of rotations to be applied to the contour
- Implements:
- gleScrew in interface GLE
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.6