public class Sketchup
extends java.lang.Object
The handler for proprietary issues. It contains static methods:
This source is free; you can redistribute it and/or modify it under the terms of the GNU General Public License and by nameing of the originally author
| Constructor and Description |
|---|
Sketchup() |
| Modifier and Type | Method and Description |
|---|---|
static Color |
createColor(java.util.ArrayList<DataAssembler.Param> p)
creates a Color if <color> exist
converts float values from 0-1(Sketchup) to 0-255(processing)
|
static java.util.ArrayList<Triangle> |
createTriangles(java.util.ArrayList<DataAssembler.Param> p)
creates Triangles based on this shape.
|
static void |
iterate_geometry_symbol_Binds_and_Link(java.util.ArrayList<DataAssembler.Param> p)
iterates all material/symbol binds (defined in <visual_scene>) they belong
to geometry id of current shape (triangle or line).
|
static Common.CoordData |
parseCoordData(java.util.ArrayList<DataAssembler.Param> p)
parses raw coord data from xml (triangles/lines tag) to 'java readable' data
|
static void |
sop(java.util.ArrayList<DataAssembler.Param> p) |
public static void sop(java.util.ArrayList<DataAssembler.Param> p)
public static void iterate_geometry_symbol_Binds_and_Link(java.util.ArrayList<DataAssembler.Param> p)
1. - a current Shape from <geometry>2. - geometry_symbol_Binds from <visual_scene>3. - parent tag of shape (<geometry>)public static Common.CoordData parseCoordData(java.util.ArrayList<DataAssembler.Param> p)
a - triangles/lines tag (entry)arg1 - = path to input tag semantic vertexarg2 - = path to input tag semantic texture coordsarg3 - = path to float_array tag with vertex coordsarg4 - = path to float_array tag with texture coordsarg5 - = path to p tagpublic static java.util.ArrayList<Triangle> createTriangles(java.util.ArrayList<DataAssembler.Param> p)
creates Triangles based on this shape. The coordinates is converted from Sketchup to Processing as follows:
textureProcessing x = textureSketchup x * picture.width
textureProcessing y = picture.height - textureSketchup y * picture.height
processing x = Sketchup x
processing y = Sketchup -z
processing z = Sketchup -y
1. - Raw coords (vertex+texture)2. - a Texture image3. - a Color (converted to processing)4. - the Collada interfacepublic static Color createColor(java.util.ArrayList<DataAssembler.Param> p)
a - <lines/triangles> tag from geometry with colorargs