Skip to content
Snippets Groups Projects
Commit 94514326 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

Pyramid6 fixed

parent a2c79317
No related branches found
No related tags found
1 merge request!816GUI: fixed parametrization for pyramids real space 3D model
Pipeline #63465 passed
......@@ -158,9 +158,8 @@ Cone::Cone(float R, float H, float alpha)
set();
}
// TODO : BUG : wrong parametrization
Pyramid6::Pyramid6(float R, float H, float alpha)
: Particle(Key(BaseShape::Column, (1.0f - H / (R * std::tan(alpha))), 6))
: Particle(Key(BaseShape::Column, (1.0f - H / (R * sqrt3f/2* std::tan(alpha))), 6))
{
isNull = (R <= 0 || H <= 0 || alpha <= 0);
scale = Vector3D(R * 2, R * 2, H);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment