csg 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/bsp.c +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd64c54271e04c5a8558bf143fea9a294fe50232
|
4
|
+
data.tar.gz: 034f2b630435697ee0dfa0dd3dec15e9bf72dd13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 933e067a95518c104a03b56828d095b564837ad6b76b0454160c6327865ff6730fd870d02bfabf0c9da58d9a22456646a5dd26ba3e604cd7a86990ecd7c14fc5
|
7
|
+
data.tar.gz: 26b431c5484349f9d89f21fbedcc8ca43be066366e33d4608ac9875c9775e618011b828a05bd8faa5553f9d51faf368d0e6a6b0f62b511a9570319947cf125a0
|
data/src/bsp.c
CHANGED
@@ -366,8 +366,8 @@ klist_t(poly) *bsp_clip_polygon_array(bsp_node_t *node, poly_t **polygons, size_
|
|
366
366
|
if(n_polys == 0) return result;
|
367
367
|
|
368
368
|
if(node->divider != NULL) {
|
369
|
-
if((n_polys *
|
370
|
-
check_mem(poly_buffer = malloc((sizeof(poly_t*) * n_polys) *
|
369
|
+
if((n_polys * 4) > STATIC_POLY_BUFFER_SIZE) {
|
370
|
+
check_mem(poly_buffer = malloc((sizeof(poly_t*) * n_polys) * 4));
|
371
371
|
}
|
372
372
|
front_array = poly_buffer;
|
373
373
|
back_array = poly_buffer + n_polys;
|
@@ -447,8 +447,8 @@ klist_t(poly) *bsp_clip_polygons(bsp_node_t *node, klist_t(poly) *polygons, klis
|
|
447
447
|
if(polygons->size == 0) return result;
|
448
448
|
|
449
449
|
if(node->divider != NULL) {
|
450
|
-
if((polygons->size *
|
451
|
-
check_mem(poly_buffer = malloc(sizeof(poly_t*) * polygons->size *
|
450
|
+
if((polygons->size * 4) > STATIC_POLY_BUFFER_SIZE) {
|
451
|
+
check_mem(poly_buffer = malloc(sizeof(poly_t*) * polygons->size * 4));
|
452
452
|
}
|
453
453
|
front_array = poly_buffer;
|
454
454
|
back_array = poly_buffer + polygons->size;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Shirokov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|