star-enclosures-3d

Extract enclosures from 3D geometry
git clone git://git.meso-star.fr/star-enclosures-3d.git
Log | Files | Refs | README | LICENSE

commit e50d53b5af12c1b9f84f09ced229fe69a78c5c20
parent 6efcf48cae604accc818d93c54c2ad1ccc54bc16
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 20 Feb 2018 14:10:01 +0100

Fix a type mismatch

Allocated a darray of wrong type.

Diffstat:
Msrc/senc_scene_analyze.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/senc_scene_analyze.c b/src/senc_scene_analyze.c @@ -26,7 +26,6 @@ #include <rsys/mem_allocator.h> #include <rsys/hash_table.h> #include <rsys/dynamic_array.h> -#include <rsys/dynamic_array_uint.h> #include <star/s3d.h> @@ -300,7 +299,7 @@ extract_connex_components /* Init data structures */ darray_side_id_init(alloc, &stack); component_ids_by_medium - = MEM_ALLOC(alloc, scn->nmeds * sizeof(struct darray_uint)); + = MEM_ALLOC(alloc, scn->nmeds * sizeof(struct darray_component_id)); if(!component_ids_by_medium) { res = RES_MEM_ERR; goto error; @@ -1122,7 +1121,7 @@ senc_scene_analyze(struct senc_scene* scn, struct senc_descriptor** out_desc) } side_ids_by_medium - = MEM_ALLOC(scn->dev->allocator, scn->nmeds * sizeof(struct darray_uint)); + = MEM_ALLOC(scn->dev->allocator, scn->nmeds * sizeof(struct darray_side_id)); if(!side_ids_by_medium) { res = RES_MEM_ERR; goto error;