Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
6a63c0f1
Commit
6a63c0f1
authored
Apr 12, 2013
by
Ioan Sucan
Browse files
fix generation of mesh from cone
parent
8e144bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/fcl/shape/geometric_shape_to_BVH_model.h
View file @
6a63c0f1
...
...
@@ -278,9 +278,11 @@ void generateBVHModel(BVHModel<BV>& model, const Cone& shape, const Transform3f&
for
(
unsigned
int
i
=
0
;
i
<
h_num
-
1
;
++
i
)
{
double
h_i
=
h
/
2
-
(
i
+
1
)
*
hd
;
double
rh
=
r
*
(
0.5
-
h_i
/
h
);
for
(
unsigned
int
j
=
0
;
j
<
tot
;
++
j
)
{
points
.
push_back
(
Vec3f
(
r
*
cos
(
phi
+
phid
*
j
),
r
*
sin
(
phi
+
phid
*
j
),
h
/
2
-
(
i
+
1
)
*
hd
));
points
.
push_back
(
Vec3f
(
r
h
*
cos
(
phi
+
phid
*
j
),
r
h
*
sin
(
phi
+
phid
*
j
),
h
_i
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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