Example #1
0
 public Geometry(
     IShape shape,
     CommonGeometry baseGeometry,
     ObjectGeometryType geometryType)
     : this(shape, baseGeometry, geometryType, false)
 {
 }
Example #2
0
 public Geometry(
     IShape shape,
     CommonGeometry baseGeometry,
     ObjectGeometryType geometryType,
     bool getAdjacencyList)
 {
     Shape        = shape;
     GeometryType = geometryType;
     BaseGeometry = baseGeometry;
 }
        public ObjectGeometry (
			Vector3[] inputVertexPosition,
			int[][] inputTriangle,
            ObjectGeometryType geometryType)
		{
			Triangle = new int[inputTriangle.Length][];

            for (int i = 0; i < inputTriangle.Length; i++)
            {
                Triangle[i] = new int[3];
                Triangle[i][0] = inputTriangle[i][0];
                Triangle[i][1] = inputTriangle[i][1];
                Triangle[i][2] = inputTriangle[i][2];
            }

            SetVertexAdjacency(inputVertexPosition);
            GeometryType = geometryType;
        }