Example #1
0
    public void Before()
    {
        mapController    = GetMapControllerMock();
        spriteDictionary = GetSpriteDictionaryMock();
        meshCreator      = GetMeshCreatorMock();

        mapController.SetSpriteDictionary(spriteDictionary);
        mapController.SetMeshCreator(meshCreator);
    }
Example #2
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Plane    pl = new Plane();
            Interval x  = new Interval();
            Interval y  = new Interval();
            Interval z  = new Interval();

            DA.GetData(0, ref pl);
            DA.GetData(1, ref x);
            DA.GetData(2, ref y);
            DA.GetData(3, ref z);
            DA.GetData(4, ref u);
            DA.GetData(5, ref v);
            DA.GetData(6, ref w);
            DA.GetData(7, ref weld);
            DA.GetData(8, ref tolerance);

            IMesh mesh = IMeshCreator.CreateCube(pl, x, y, z, u, v, w, weld, tolerance);

            DA.SetData(0, mesh);
        }