Skip to content

Length of muscle segments wrapped around cylinder should be a function of muscle radius or model size #2205

Open
@tkuchida

Description

@tkuchida

WrapCylinder should adjust the minimum length of each muscle segment based on the muscle's radius (currently one of the Preferences in the GUI) or some measure of model size. Wrapping is currently very coarse for small models.

// Each muscle segment on the surface of the cylinder should be
// 0.002 meters long. This assumes the model is in meters, of course.
int numWrapSegments = (int) (aWrapResult.wrap_path_length / 0.002);
if (numWrapSegments < 1)
numWrapSegments = 1;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions