classifyFaces() public method

public classifyFaces ( Object3D obj ) : void
obj Object3D
return void
Exemplo n.º 1
0
        //--------------------------------CONSTRUCTORS----------------------------------//

        /**
         * Constructs a BooleanModeller object to apply boolean operation in two solids.
         * Makes preliminary calculations
         *
         * @param solid1 first solid where boolean operations will be applied
         * @param solid2 second solid where boolean operations will be applied
         */
        public BooleanModeller(Solid solid1, Solid solid2)
        {
            //representation to apply boolean operations
            object1 = new Object3D(solid1);
            object2 = new Object3D(solid2);

            //split the faces so that none of them intercepts each other
            object1.splitFaces(object2);
            object2.splitFaces(object1);

            //classify faces as being inside or outside the other solid
            object1.classifyFaces(object2);
            object2.classifyFaces(object1);
        }
Exemplo n.º 2
0
        //--------------------------------CONSTRUCTORS----------------------------------//
        /**
         * Constructs a BooleanModeller object to apply boolean operation in two solids.
         * Makes preliminary calculations
         *
         * @param solid1 first solid where boolean operations will be applied
         * @param solid2 second solid where boolean operations will be applied
         */
        public BooleanModeller(Solid solid1, Solid solid2)
        {
            //representation to apply boolean operations
            object1 = new Object3D(solid1);
            object2 = new Object3D(solid2);

            //split the faces so that none of them intercepts each other
            object1.splitFaces(object2);
            object2.splitFaces(object1);

            //classify faces as being inside or outside the other solid
            object1.classifyFaces(object2);
            object2.classifyFaces(object1);
        }