public bool AddGeometry(base_geom_entity g) { try { if (mGeometry.Exists(i => i.mPosition == g.mPosition)) { string msg = "Attempted to add geometry in filled vector!"; msg += " " + g.mName + "; " + g.mPosition.ToString(); Engine.C_MSG(msg, ENGINE_CONST.C_ERROR); return false; } mGeometry.Add(g); return true; } catch { return false; } }
public GeomSlice(base_geom_entity geom, Surface srf, Point start) { mGeom = geom; mSurface = srf; pDrawStart = start; }