Function puma::generateRandomFibers(puma::Workspace *, puma::MatVec3<double> *, RandomFibersInput, short)
Defined in File randomfibers.h
Function Documentation
-
bool puma::generateRandomFibers(puma::Workspace *mat, puma::MatVec3<double> *dirMatrix, RandomFibersInput input, short val)
Generates random fibers based upon the given input and stores into the workspace. After generation, void is contained in segmented value 0 and material is contained in segmented value, val
- Parameters
mat – output workspace
dirMatrix – object holds the direction vector for each point inside the material, aligned with the centerline of the cylinder
input – the RandomFibersInput details for the generation
val – the value to assign to the fibers
- Returns
true if successful, false if it failing