Search Results

Search found 2 results on 1 pages for 'eldeus'.

Page 1/1 | 1 

  • separator in string template

    - by Eldeus
    I have the following code in a stringtemplate file: (1) Module $component$ = new Module(new GeometryDescription[] {$shapes;separator=", "$}); which i know is wrong as what I would like is to be able to generate multiple of this line so that when i call Module North = new Module(new GeometryDescription[] {part1,part2}); Module South = new Module(new GeometryDescription[] {part1,part2,part3}); how can i write sentence (1) to be able to do that thanks

    Read the article

  • Java3d shape with Antlr

    - by Eldeus
    Well how to evaluate a very simple antlr grammar that does only this. Box(1,2,4) Cylinder(1,2) and builds java3d shapes, (given I have already built a canvas for java3d and have the code for creating each element in java, protected static BranchGroup addBox1(Float a, Float b, Float C){ // create branch for display TransformGroup bodyTransform = new TransformGroup(); BranchGroup bg = new BranchGroup(); bg.setCapability(BranchGroup.ALLOW_DETACH); bg.setUserData(shapeId); // set transformation bodyTransform = setTransformShape(0,0,0,0,0,0,0); // create box Box tmpBox = new Box(a,b,c, Primitive.GENERATE_NORMALS | Primitive.GENERATE_TEXTURE_COORDS,setAppearance(color)); getCoords(tmpBox); bodyTransform.addChild(tmpBox); trFormList.add(bodyTransform); shapeId++; //add box to branch bg.addChild(bodyTransform); return bg; } ) thanks

    Read the article

1