public Force(double value, IPosition3D dir, IPosition3D fpoint, IOrient3D sk, string name = "ForcePoint") : base(value, dir, sk, name) { FPoint = fpoint == null ? new Position3D(0, 0, 0, "FPoint") : fpoint; if (fpoint == null) { AddChild(FPoint); } }
public ForceCenter(double value, IPosition3D dir, IOrient3D sk, string name = "ForceCntr") { Name = name; Value = value; SK = sk; Direction = dir == null ? new Position3D(1, 0, 0, "Direction") : dir; if (dir == null) { AddChild(Direction); } else if (dir.Owner == null) { AddChild(Direction); } }