add btFileUtils::toLower to convert a string (char*) to lower case

URDF import demo: add COLLADA .dae file support
add FiniteElementMethod demo, extracted from the OpenTissue library (under the zlib license)
don't crash if loading an invalid STL file
add comparison with Assimp for COLLADA file loading (disabled by default, to avoid library dependency)
Gwen: disable some flags that make the build incompatible
This commit is contained in:
erwin coumans
2014-10-29 13:18:34 -07:00
parent aaaf8dc4e2
commit 4b665fa82b
139 changed files with 17704 additions and 46 deletions

View File

@@ -0,0 +1,43 @@
#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
#define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php
//
#include <OpenTissue/configuration.h>
namespace OpenTissue
{
namespace fem
{
namespace detail
{
/**
*
* @param begin
* @param end
* @param young
*/
template<typename real_type, typename tetrahedron_iterator>
inline void uniform_young(
tetrahedron_iterator const & begin
, tetrahedron_iterator const & end
,real_type const & young
)
{
assert(young>=0 || !"uniform_young(): Young modulus must not be negative");
for (tetrahedron_iterator T = begin;T!=end;++T)
T->m_young = young;
}
} // namespace detail
} // namespace fem
} // namespace OpenTissue
//OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H
#endif