|
|
@ -107,11 +107,16 @@ namespace ssim { |
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
if (ImGui::CollapsingHeader("材料设置", ImGuiTreeNodeFlags_DefaultOpen)) { |
|
|
|
static const int item_width=200; |
|
|
|
ImGui::SetNextItemWidth(item_width); |
|
|
|
ImGui::InputFloat("杨氏模量", &sp_StaticSim_->get_material_property().Youngs_Modulus, 1.0f, 2e11f, |
|
|
|
"%.2e"); |
|
|
|
|
|
|
|
ImGui::InputFloat("杨氏模量", &sp_StaticSim_->get_material_property().Youngs_Modulus, 1.0f, 1e10f, |
|
|
|
"%.3f"); |
|
|
|
ImGui::SetNextItemWidth(item_width); |
|
|
|
ImGui::InputFloat("泊松比", &sp_StaticSim_->get_material_property().Poisson_ratio, 0.01f, 1.0f, |
|
|
|
"%.3f"); |
|
|
|
|
|
|
|
ImGui::SetNextItemWidth(item_width); |
|
|
|
ImGui::InputFloat("密度", &sp_StaticSim_->get_material_property().density, 1.0f, 1000.0f, "%.3f"); |
|
|
|
} |
|
|
|
|
|
|
|