public static InteractablePoint iPoint(Vector3 position) { InteractablePoint point = InteractablePoint.Constructor(); point.Position3 = position; point.InitializeFigure(); return(point); }
public void makeRevolvedSurface(AbstractLineSegment attachedLine, Vector3 revPoint, Vector3 normDir) { #region intialize a cylinder, cone or conic /etc. InteractablePoint newPoint = InteractablePoint.Constructor(); newPoint.Position3 = revPoint; //nullreference on this line from shipswheel DependentRevolvedSurface drs = GeoObjConstruction.dRevSurface(newPoint.GetComponent <AbstractPoint>(), attachedLine, normDir); HW_GeoSolver.ins.AddDependence(drs, newPoint); HW_GeoSolver.ins.AddDependence(drs, attachedLine.GetComponent <MasterGeoObj>()); #endregion }