예제 #1
0
 public BaseShapeNodeElement(BBoxF32 untransformedBBox, CountRange vertexCountRange, int objectId)
     : base(objectId)
 {
     UntransformedBBox = untransformedBBox;
     VertexCountRange  = vertexCountRange;
     CompressionLevel  = 0;
 }
예제 #2
0
 public BaseShapeNodeElement(Stream stream)
     : base(stream)
 {
     TransformedBBox   = new BBoxF32(stream);
     UntransformedBBox = new BBoxF32(stream);
     Area              = StreamUtils.ReadFloat(stream);
     VertexCountRange  = new CountRange(stream);
     NodeCountRange    = new CountRange(stream);
     PolygonCountRange = new CountRange(stream);
     Size              = StreamUtils.ReadInt32(stream);
     CompressionLevel  = StreamUtils.ReadFloat(stream);
 }
예제 #3
0
 public BaseShapeNodeElement(GeometricSet geometricSet, int objectId)
     : base(objectId)
 {
     TransformedBBox   = new BBoxF32();
     UntransformedBBox = geometricSet.UntransformedBoundingBox;
     Area              = geometricSet.Area;
     VertexCountRange  = new CountRange(geometricSet.Positions.Length);
     NodeCountRange    = new CountRange(1);
     PolygonCountRange = new CountRange(geometricSet.TriangleCount);
     Size              = geometricSet.Size;
     CompressionLevel  = 0;
 }
예제 #4
0
        public PartitionNodeElement(Stream stream)
            : base(stream)
        {
            PartitionFlags    = StreamUtils.ReadInt32(stream);
            FileName          = new MbString(stream);
            TransformedBBox   = new BBoxF32(stream);
            Area              = StreamUtils.ReadFloat(stream);
            VertexCountRange  = new CountRange(stream);
            NodeCountRange    = new CountRange(stream);
            PolygonCountRange = new CountRange(stream);

            if ((PartitionFlags & 0x00000001) != 0)
            {
                UntransformedBBox = new BBoxF32(stream);
            }
        }