poly.h 947 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <neatogen/geometry.h>
  15. typedef struct {
  16. Point origin;
  17. Point corner;
  18. int nverts;
  19. Point *verts;
  20. int kind;
  21. } Poly;
  22. extern void polyFree(void);
  23. extern int polyOverlap(Point, Poly *, Point, Poly *);
  24. int makePoly(Poly *, Agnode_t *, double, double);
  25. int makeAddPoly(Poly *, Agnode_t *, double, double);
  26. extern void breakPoly(Poly *);
  27. #ifdef __cplusplus
  28. }
  29. #endif