MEDYAN.newfilament_rand!

Tuple{MEDYAN.Context, Any}

newfilament_rand!(c::Context, monomerstates; iterations = 10^9, ftid = 1)

Add a filament with type id ftid to the Context with random center position and direction.

Return the filament id of a new filament.

monomerstates is a collection of the MonomerState of the monomers in the new filament.

The filament will be inside the mech boundary.

Errors if it fails to add a filament.

The monomer are spaced by the value in the filament type’s mechanical parameters.