dxfVertex.h 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file dxfVertex.h
  10. * @author drose
  11. * @date 2004-05-04
  12. */
  13. #ifndef DXFVERTEX_H
  14. #define DXFVERTEX_H
  15. #include "pandatoolbase.h"
  16. #include "pvector.h"
  17. #include "luse.h"
  18. /**
  19. * Stored within DXFFile, this is the basic Vertex data of a DXF file. When
  20. * DXFFile::DoneEntity() is called, if the entity is a type to have vertices,
  21. * then DXFFile::_verts contains a list of all the vertices that belong to the
  22. * entity.
  23. */
  24. class DXFVertex {
  25. public:
  26. DXFVertex() { }
  27. DXFVertex(const LPoint3d &p) : _p(p) { }
  28. int operator < (const DXFVertex &other) const;
  29. LPoint3d _p;
  30. };
  31. typedef pvector<DXFVertex> DXFVertices;
  32. #endif