fastpli.model.sandbox.build.cuboid

cuboid(p, q, phi, theta, seeds, radii)[source]

Generated a fiber bundle inside a cuboid along a axis

Parameters
  • p,q ((3,)-array_like) – (x,y,z)-points of cuboid corners

  • phi, theta (float) – spherical angles of axis

  • seeds ((m,2)-array_like) – fiber seeds on a 2d plane

  • radii (float or (n,)-array_like) – fiber seeds radii

Returns

res – list of fibers with (x,y,z,r)-coordinates

Return type

list((nx4)-array)