Package gov.nist.microanalysis.NISTMonte

Examples of gov.nist.microanalysis.NISTMonte.MultiPlaneShape


        IMaterialScatterModel model = new BasicMaterialModel(mat);

        double dim = 0.01; // 1 mm
        double[] dims = new double[] { dim, dim, dim };
        double[] pos = new double[] { 0.0, 0.0, -dim / 2.0 };
        MultiPlaneShape shape = MultiPlaneShape.createBlock(dims, pos, 0, 0, 0);

        new Region(chamber, model, shape);
    }
View Full Code Here


            IMaterialScatterModel material = materials.get(materialIndex);

            // Create shape
            double[] normal = Math2.Z_AXIS;
            double[] pt = Math2.ORIGIN_3D;
            MultiPlaneShape shape =
                    MultiPlaneShape.createSubstrate(normal, pt);

            // Add shape to chamber
            new IndexedRegion(chamber, material, shape, 1);
View Full Code Here

                throws IOException, EPQException {
            Map<Integer, IMaterialScatterModel> materials =
                    extractMaterials(geometryElement);

            // Layers
            MultiPlaneShape shape;
            double[] normal = Math2.Z_AXIS;
            double[] point = Math2.ORIGIN_3D;

            Element layersElement = geometryElement.getChild("layers");
View Full Code Here

            layers.add(new Layer(materials.get(rightMaterialIndex), 0.1));
            totalThickness += 0.1;

            // Create regions
            MultiPlaneShape shape;
            double[] surfaceNormal = Math2.Z_AXIS;
            double[] layerNormal = Math2.MINUS_X_AXIS;
            double[] origin = Math2.ORIGIN_3D;
            double[] point =
                    Math2.multiply(-totalThickness / 2.0, Math2.X_AXIS);

            int layerIndex = 0;
            for (Layer layer : layers) {
                // FIXME: Depth not considered

                shape =
                        MultiPlaneShape.createFilm(layerNormal, point,
                                layer.thickness);
                shape.addPlane(surfaceNormal, origin); // surface
                new IndexedRegion(chamber, layer.material, shape, ++layerIndex);

                // Calculate next point
                point =
                        Math2.plus(point,
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.NISTMonte.MultiPlaneShape

Copyright © 2018 www.massapicom. 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.