Пример #1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object can be used to retrieve data from input parameters and
        /// to store data in output parameters.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            IntPtr topoData = IntPtr.Zero;

            if (!DA.GetData(0, ref topoData))
            {
                return;
            }

            List <Polyline> polylines  = new List <Polyline>();
            IntPtr          baseMesh2D = TopoCreator.initBaseMesh2DPtr(topoData);

            TopoCreator.getPolyLines(polylines, baseMesh2D, false);
            TopoCreator.deletePolyLineRhino(baseMesh2D);
            DA.SetDataList(0, polylines);
        }