Beispiel #1
0
btMaterial::btMaterial(btScalar youngModulus, btScalar poissonRatio):
    m_e(youngModulus),
    m_nu(poissonRatio),
    m_E(6, 6)
{
    computeE();
}
Beispiel #2
0
int main()
{
    int n;
    float epsilon;

    printf("Enter a value for n: ");
    scanf("%d", &n);

    printf("Enter a value for E (epsilon): ");
    scanf("%f", &epsilon);

    printf("\n");

    printf("e = %f\n", computeE(n, epsilon));

    return 0;
}
Beispiel #3
0
void btMaterial::setPoissonRatio(btScalar nu)
{
    m_nu = nu;
    computeE();
}
Beispiel #4
0
void btMaterial::setYoungModulusAndPoissonRatio(btScalar youngModulus, btScalar poissonRatio)
{
    m_e = youngModulus;
    m_nu = poissonRatio;
    computeE();
}
Beispiel #5
0
void btMaterial::setYoungModulus(btScalar e)
{
    m_e = e;
    computeE();
}