Grasshopper

algorithmic modeling for Rhino

Hey All,

 

 

I am trying to add these references:

 

using System.Collections.Generic;
using System.Linq;

 

 

Unfortunately without success :(

 

Do anybody of you guys know how to to do it?

 

Basically I am trying to found same points in a pointlist, here is the c# code

 

  private void RunScript(List<Point3d> arrPts, ref object A, ref object B)

  {

 

    var newArr = (

      from p in arrPts

        select p.X & p.Y & p.Z)

      .Distinct().ToList<double>();

 

    A = newArr;

  }

 

Maybe somebody know also other solution

 

Best

Dimitry

Views: 177

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service