Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
b55eca7f
Commit
b55eca7f
authored
Sep 11, 2022
by
Richard Gobeille
Browse files
engine: revert more of
8cc49790
parent
3b1e9e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/voxmodel.cpp
View file @
b55eca7f
...
...
@@ -418,18 +418,22 @@ static voxmodel_t *vox2poly()
gvox
=
(
voxmodel_t
*
)
Xcalloc
(
1
,
sizeof
(
voxmodel_t
));
//x is largest dimension, y is 2nd largest dimension
auto
vdim
=
voxsiz
;
int32_t
x
=
voxsiz
.
x
,
y
=
voxsiz
.
y
,
z
=
voxsiz
.
z
;
if
(
vdim
.
x
<
vdim
.
y
&&
vdim
.
x
<
vdim
.
z
)
vdim
.
x
=
vdim
.
z
;
else
if
(
vdim
.
y
<
vdim
.
z
)
vdim
.
y
=
vdim
.
z
;
if
(
x
<
y
&&
x
<
z
)
x
=
z
;
else
if
(
y
<
z
)
y
=
z
;
if
(
vdim
.
x
<
vdim
.
y
)
vdim
=
{
vdim
.
y
,
vdim
.
z
,
vdim
.
x
};
if
(
x
<
y
)
{
z
=
x
;
x
=
y
;
y
=
z
;
}
shcntp
=
vdim
.
x
;
int32_t
i
=
vdim
.
x
*
vdim
.
y
*
sizeof
(
int32_t
);
shcntp
=
x
;
int32_t
i
=
x
*
y
*
sizeof
(
int32_t
);
shcntmal
=
(
int32_t
*
)
Xmalloc
(
i
);
memset
(
shcntmal
,
0
,
i
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment