public BaseShapeNodeElement(BBoxF32 untransformedBBox, CountRange vertexCountRange, int objectId) : base(objectId) { UntransformedBBox = untransformedBBox; VertexCountRange = vertexCountRange; CompressionLevel = 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); }
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; }
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); } }