A computer apparatus and method for generating structures and analyzing the
stability of a structure formed from multiple predefined components
represents the structure as a series of bodies fixed in place by
stationary joints. The joints have known properties and each joint is
assigned a torque capacity corresponding to the known properties. A
computer routine calculates torque exerted on each joint and compares the
calculated torque with the torque capacities to determine stability of the
structure. The computer routine enables remodeling of an unstable
structure.