functionZipperLocInitializer

Calculates the initial position and orientation angle of a free-floating beam

Information

A function to calculate the initial position and orientation angle of a free-floating beam. The beam is assumed to hang at the bottom intersection between two cloths. The function takes in the four points that would be used to define a "bent cloth" of the same configuration and uses the algorithm developed to calculate the positions of the outside bottom points of a hanging cloth (see cloth_bend documentation). These points are taken to be the end points of the beam. The orientation angles are calculated from these end points.

Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED

Inputs

TypeNameDefaultDescription
RealP1
RealP2
RealP3
RealP4
IntegerM
IntegerN
Realstart_angle
RealP_refCenter of arc in which P1, P2, etc. are defined
Frames.OrientationP_RAbsolute orientation of P_ref in space
Booleandebugfalse

Outputs

TypeNameDefaultDescription
RealB