Package gov.nist.microanalysis.NISTMonte

Examples of gov.nist.microanalysis.NISTMonte.IndexedRegion


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

            // Add shape to chamber
            new IndexedRegion(chamber, material, shape, 1);

            applyRotationTilt(geometryElement, chamber);
        }
View Full Code Here


            Shape downPlane = MultiPlaneShape.createSubstrate(normal, center);
            Shape substrateShape =
                    new ShapeDifference(downPlane, sphere);

            // Add shape to chamber
            new IndexedRegion(chamber, substrateMaterial, substrateShape, 1);
            new IndexedRegion(chamber, inclusionMaterial, inclusionShape, 2);

            applyRotationTilt(geometryElement, chamber);

        }
View Full Code Here

                material = materials.get(materialIndex);

                shape =
                        MultiPlaneShape
                                .createFilm(normal, point, thickness);
                new IndexedRegion(chamber, material, shape, ++layerIndex);

                // Calculate next point
                point =
                        Math2.minus(point,
                                Math2.multiply(thickness, Math2.Z_AXIS));
            }

            // Substrate
            Element substrateElement = geometryElement.getChild("substrate");
            if (substrateElement != null) {
                int substrateMaterialIndex;
                try {
                    substrateMaterialIndex =
                            substrateElement.getAttribute("material")
                                    .getIntValue();
                } catch (DataConversionException e) {
                    throw new IOException(e);
                }

                IMaterialScatterModel substrateMaterial =
                        materials.get(substrateMaterialIndex);

                thickness = 0.1; // 10 cm
                shape = MultiPlaneShape.createFilm(normal, point, thickness);
                new IndexedRegion(chamber, substrateMaterial, shape,
                        layerIndex + 1);
            }

            applyRotationTilt(geometryElement, chamber);
        }
View Full Code Here

                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,
                                Math2.multiply(layer.thickness, Math2.X_AXIS));
View Full Code Here

TOP

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

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.