Skip to content
Snippets Groups Projects
Commit 0aae6ec6 authored by Andrew Wilson's avatar Andrew Wilson :elephant:
Browse files

DOC: Include dashboard link in readme, update PbdModel code example

parent 4eeea39e
No related branches found
No related tags found
No related merge requests found
......@@ -93,11 +93,11 @@ To setup a PbdModel we do:
::
// Setup the config
imstkNew<PBDModelConfig> pbdConfig;
imstkNew<PbdModelConfig> pbdConfig;
// Constraints
pbdConfig->enableConstraint(PbdConstraint::Type::Distance, 1e2);
pbdConfig->enableConstraint(PbdConstraint::Type::Dihedral, 1e1);
pbdConfig->enableConstraint(PbdModelConfig::ConstraintGenType::Distance, 1e2);
pbdConfig->enableConstraint(PbdModelConfig::ConstraintGenType::Dihedral, 1e1);
pbdConfig->m_fixedNodeIds = { 0, 1 };
// Other parameters
......@@ -111,7 +111,7 @@ To setup a PbdModel we do:
pbdModel->setModelGeometry(surfMesh);
pbdModel->configure(pbdConfig);
**Constraints**: Constraints of varying types may be used via ``PBDModelConfig::enableConstraint``, internally this uses PbdConstraintFunctor's which defines how to generate constraints. If one needs more hands on with constraints you may write your own ``PbdConstraintFunctor``. Implemented by subclassing PbdConstraintFunctor and overriding the operator() function. See existing functors in ``imstkPbdConstraintFunctor.h``.
**Constraints**: Constraints of varying types may be used via ``PbdModelConfig::enableConstraint``, internally this uses PbdConstraintFunctor's which defines how to generate constraints. If one needs more hands on with constraints you may write your own ``PbdConstraintFunctor``. Implemented by subclassing PbdConstraintFunctor and overriding the operator() function. See existing functors in ``imstkPbdConstraintFunctor.h``.
::
......
......@@ -34,6 +34,9 @@ iMSTK is licensed under [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.
### Documentation
Click [here](https://imstk.readthedocs.io/en/latest/) for detailed documentation.
### Dashboard
Click [here](https://open.cdash.org/index.php?project=iMSTK) for nightly build & MR results.
### Discourse
The iMSTK Users and Developers can post questions and discuss relevant topics at the [Discourse](https://discourse.kitware.com/c/imstk).
......@@ -48,6 +51,7 @@ Designed more specifically for developers, the issue tracker allows developers t
## Prerequisites
* Git
* Git LFS
* Python (if using Uncrustify, default on)
* CMake 3.15 or higher
##### On Linux:
......
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