csg 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/src/bsp.c +7 -2
- data/src/stl.c +0 -1
- metadata +2 -2
data/src/bsp.c
CHANGED
@@ -24,8 +24,13 @@ bsp_node_t *clone_bsp_tree(bsp_node_t *tree) {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
free_poly(copy->divider, 1);
|
27
|
-
|
28
|
-
|
27
|
+
if(tree->divider) {
|
28
|
+
copy->divider = clone_poly(tree->divider);
|
29
|
+
check_mem(copy->divider);
|
30
|
+
}
|
31
|
+
else {
|
32
|
+
copy->divider = NULL;
|
33
|
+
}
|
29
34
|
|
30
35
|
if(tree->front != NULL) {
|
31
36
|
copy->front = clone_bsp_tree(tree->front);
|
data/src/stl.c
CHANGED
@@ -220,7 +220,6 @@ stl_object *stl_read_object(int fd) {
|
|
220
220
|
// Triangle count
|
221
221
|
rc = read(fd, &n_tris, sizeof(n_tris));
|
222
222
|
check(rc == sizeof(n_tris), "Failed to read facet count.");
|
223
|
-
check(n_tris > 0, "Facet count cannot be zero.");
|
224
223
|
|
225
224
|
obj = stl_alloc(header, n_tris);
|
226
225
|
|
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|