home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f012180.re_ / f012180.re
Text File  |  1996-04-02  |  3KB  |  84 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (c) 1985-93;  Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. | "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley    |
  6. |  Systems, Inc.                            |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |   Current Revision:                            |
  18. |   $Workfile:   msregion.fdf  $
  19. |   $Revision:   6.1  $  $Date:   30 Aug 1995 08:10:52  $
  20. |                                    |
  21. +----------------------------------------------------------------------*/
  22. #ifndef __msregionFDF__
  23. #define __msregionFDF__
  24.  
  25. /*----------------------------------------------------------------------+
  26. |                                    |
  27. |   Header File Dependencies                        |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30.  
  31. #if !defined (__dloadlibH__)
  32. #include "dloadlib.h"
  33. #endif
  34.  
  35. #if !defined (__mdlH__)
  36. #include "mdl.h"
  37. #endif
  38.  
  39. #if !defined (__mselemsH__)
  40. #include "mselems.h"
  41. #endif
  42.  
  43. #if !defined (__mdlbsplnH__)
  44. #include "mdlbspln.h"
  45. #endif
  46. /*======================================================================+
  47. |                                    |
  48. |   Function Definitions                        |
  49. |                                    |
  50. +======================================================================*/
  51. int mdlRegion_floodFill
  52. (
  53. MSElementDescr    **outEdPP,        /* <= element bounding region */
  54. MSBsplineCurve    *outCurveP,        /* <= B-Curve bounding region */
  55. MSElementDescr    *inEdP,            /* => seed element */
  56. Dpoint3d    *normalP,        /* => normal to plane */
  57. Dpoint3d    *seedPointP,        /* => seed point */
  58. double        closureTolerance,    /* => closure tolerance */
  59. MdlFunctionP    stopFunction        /* => stop function (or NULL) */
  60. );
  61.  
  62. int mdlPolygon_divide            /* <= SUCCESS, MDLERR_INSFMEMORY, etc... */
  63. (
  64. PolygonLink     **outPolygonPP,     /* <= Linked list of montonic polygons */
  65. PolygonLink     *inPolygonP        /* => Single Polygon (may have holes) */
  66. );
  67.  
  68. void mdlPolygon_free            /* Free up a dlmSystem_mdlMalloc'd polygon. */
  69. (
  70. PolygonLink   *polygonListP
  71. );
  72.  
  73. int mdlPolygon_pointInside /* <= 0 if outside, -1 of on, 1 if inside */
  74. (
  75. double        *pt,               /* => test point, 2d or 3d */
  76. double        *points,           /* => closed polygon points, 2d or 3d */
  77. int        numPoints,           /* => number of points in polygon */
  78. int        closed,               /* => TRUE if the polygon is closed */
  79. int        dimension,           /* => 2 or 3 */
  80. double        onTolerance           /* => on Polygon tolerance */
  81. );
  82.  
  83. #endif
  84.