int SDTBreaking_hasFinished(SDTBreaking *x)
Checks if the breaking process is finished, i.e. if the remaining energy is 0.
void SDTCrumpling_dsp(SDTCrumpling *x, double *outs)
Single iteration of a crumpling process. Call this routine in a loop to simulate a crumpling process...
double SDTBouncing_dsp(SDTBouncing *x)
Single iteration of the whole buncing process. Call this routine in a loop to simulate the bouncing p...
void SDTBreaking_dsp(SDTBreaking *x, double *outs)
Single iteration of the whole breaking process. Call this routine in a loop to simulate a breaking pr...
SDTBreaking * SDTBreaking_new()
Object constructor.
void SDTScraping_setForce(SDTScraping *x, double f)
Sets the normal force of the scraping probe on the surface. This parameter affects the energy of the ...
void SDTBreaking_setFragmentation(SDTBreaking *x, double f)
Sets the amount of progressive fragmentation of the object during the process.
SDTCrumpling * SDTCrumpling_new()
Object constructor.
void SDTRolling_free(SDTRolling *x)
Object destructor.
void SDTBouncing_setHeight(SDTBouncing *x, double f)
Sets the initial height of the falling object.
struct SDTBouncing SDTBouncing
Opaque data structure for the crumpling object.
Definition: SDTControl.h:20
SDTBouncing * SDTBouncing_new()
Object constructor.
double SDTRolling_dsp(SDTRolling *x, double in)
Signal processing routine. Call this function at sample rate to compute the force acting on the rolli...
void SDTRolling_setMass(SDTRolling *x, double f)
Sets the rolling mass. The mass parameter of the controlled object should be updated accordingly...
int SDTBouncing_hasFinished(SDTBouncing *x)
Checks if the bouncing process is finished, i.e. if the remaining energy is 0.
void SDTRolling_setDepth(SDTRolling *x, double f)
Sets the average bump depth. This parameter affects the energy of the micro-impacts.
struct SDTCrumpling SDTCrumpling
Opaque data structure for the crumpling object.
Definition: SDTControl.h:114
void SDTCrumpling_free(SDTCrumpling *x)
Object destructor.
void SDTScraping_free(SDTScraping *x)
Object destructor.
struct SDTBreaking SDTBreaking
Opaque data structure for the breaking object.
Definition: SDTControl.h:64
void SDTBreaking_setGranularity(SDTBreaking *x, double f)
Sets the event density of the crumpling process.
void SDTCrumpling_setFragmentation(SDTCrumpling *x, double f)
Sets the amount of fragmentation of the object during the process.
struct SDTScraping SDTScraping
Opaque data structure for the scraping object.
Definition: SDTControl.h:198
void SDTCrumpling_setGranularity(SDTCrumpling *x, double f)
Sets the event density of the crumpling process.
void SDTCrumpling_setCrushingEnergy(SDTCrumpling *x, double f)
Sets the crushing energy.
void SDTScraping_setVelocity(SDTScraping *x, double f)
Sets the scraping velocity.
void SDTBouncing_setIrregularity(SDTBouncing *x, double f)
Sets the irregularity of the shape of the object.
struct SDTRolling SDTRolling
Opaque data structure for the rolling object.
Definition: SDTControl.h:151
SDTRolling * SDTRolling_new()
Object constructor.
void SDTBouncing_reset(SDTBouncing *x)
Resets the bouncing process, restoring its initial energy.
void SDTScraping_setGrain(SDTScraping *x, double f)
Sets the grain of the surface. This parameter affects the density of the micro-impacts: Lower values ...
double SDTScraping_dsp(SDTScraping *x, double in)
Signal processing routine. Call this function at sample rate to compute the force acting on the scrap...
void SDTBreaking_setStoredEnergy(SDTBreaking *x, double f)
Sets the total energy stored in the object.
void SDTBreaking_reset(SDTBreaking *x)
Resets the crumpling process, restoring its initial energy and triggering the first micro impact...
void SDTRolling_setGrain(SDTRolling *x, double f)
Sets the grain of the surface. This parameter affects the density of the micro-impacts: Lower values ...
void SDTBreaking_setCrushingEnergy(SDTBreaking *x, double f)
Sets the crushing energy.
void SDTBreaking_free(SDTBreaking *x)
Object destructor.
void SDTBouncing_free(SDTBouncing *x)
Object destructor.
SDTScraping * SDTScraping_new()
Object constructor.
void SDTBouncing_setRestitution(SDTBouncing *x, double f)
Sets the coefficient of restitution.
void SDTRolling_setVelocity(SDTRolling *x, double f)
Sets the rolling velocity.