Examples of PolygonalSceneObject


Examples of org.kalimullin.fsraytracer.scene.PolygonalSceneObject

                break;
            case "name":
                currentObjectName = currentElementValue;
                break;
            case "object":
                sceneObjectSet.add(new PolygonalSceneObject(currentObjectName, polygonSet));
                break;
        }
    }
View Full Code Here

Examples of org.kalimullin.fsraytracer.scene.PolygonalSceneObject

        Face face4 = new Face(point4, point3, point2);
        Polygon polygon1 = new Polygon(face1);
        Polygon polygon2 = new Polygon(face2);
        Polygon polygon3 = new Polygon(face3);
        Polygon polygon4 = new Polygon(face4);
        pyramidSceneObjectSet.add(new PolygonalSceneObject("pyramid",
                new HashSet<>(Arrays.asList(polygon1, polygon2, polygon3, polygon4))));

    }
View Full Code Here

Examples of org.kalimullin.fsraytracer.scene.PolygonalSceneObject

                Set<Polygon> polygonSet = new HashSet<>();
                for(int polygonIndex = 1; polygonIndex <= polygonsCount; polygonIndex++) {
                    polygonSet.add(polygonMap.get(((Number) xpath.evaluate("(face-id)[" + polygonIndex + "]",
                            faceNode, XPathConstants.NUMBER)).intValue()));
                }
                PolygonalSceneObject polygonalSceneObject = new PolygonalSceneObject(name, polygonSet);
                sceneObjectSet.add(polygonalSceneObject);
                logger.debug("Added SceneObject[{}]: {}", name , polygonalSceneObject);
            }
        } catch (XPathExpressionException e) {
            logger.error("Wrong XPath expression:", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.