public SpaceTriangulatedModel GetTriangulatedModel(long EntityLabel) { EntityLabel = Math.Abs(EntityLabel); if (!HasGeometryFor(EntityLabel)) { return(null); } SpaceTriangulatedModel ret = new SpaceTriangulatedModel(); ret.EntityLabel = EntityLabel; long startingPosition = _positions[EntityLabel]; _geomReader.BaseStream.Seek(startingPosition, SeekOrigin.Begin); ret.Matrix = ReadMatrix(_geomReader); ret.Mesh = ReadTriangulatedModelAtCurrentPosition(0); return(ret); }
public SpaceTriangulatedModel GetTriangulatedModel(long EntityLabel) { EntityLabel = Math.Abs(EntityLabel); if (!HasGeometryFor(EntityLabel)) return null; SpaceTriangulatedModel ret = new SpaceTriangulatedModel(); ret.EntityLabel = EntityLabel; long startingPosition = _positions[EntityLabel]; _geomReader.BaseStream.Seek(startingPosition, SeekOrigin.Begin); ret.Matrix = ReadMatrix(_geomReader); ret.Mesh = ReadTriangulatedModelAtCurrentPosition(0); return ret; }