solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 91af47529a0296b1c29cd1ee2d6e39c432f8d225
parent 8ca97109b01dcf8336173b5a51c7bbb16e54be51
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  1 Sep 2016 15:51:15 +0200

Add the clipping operation data to the ssol_carving structure

Diffstat:
Msrc/ssol.h | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/ssol.h b/src/ssol.h @@ -57,6 +57,12 @@ struct ssol_shape; struct ssol_spectrum; struct ssol_sun; +enum ssol_clipping_op { + SSOL_AND, + SSOL_SUB, + SSOL_CLIPPING_OPS_COUNT__ +}; + enum ssol_pixel_format { SSOL_PIXEL_DOUBLE3, SSOL_PIXEL_FORMAT_COUNT__ @@ -136,10 +142,13 @@ struct ssol_quadric { } data; }; +/* Define the contour of a 2D polygon as well as the clipping operation to + * apply against it */ struct ssol_carving { void (*get) /* Retrieve the 2D coordinates of the vertex `ivert' */ (const size_t ivert, double position[2], void* ctx); size_t nb_vertices; /* #vertices */ + enum ssol_clipping_op operation; /* Clipping operation */ void* context; /* User defined data */ };