Grasshopper

algorithmic modeling for Rhino

Hi,

I have an issue with CollidePointMesh goal when using it within C# KangarooSolver.dll

I get error line0: within the line number 186.

How can I add correctly this goal to GoalList?

I think I have to add PS.AssignPIndex(collision, 0.001);

But this does solves collision problem.

I attached .gh file below.

Thanks,

Petras

Views: 412

Attachments:

Replies to This Discussion

I solved what I wanted to do with OnMesh Goal:

Point3d[] pts = PS.GetPositionArray();
// IGoal g = new CollidePointMesh(pts, meshToCollide, false, 0.01);
IGoal g = new KangarooSolver.Goals.OnMesh(pts.ToList(), meshToCollide, 1);
PS.AssignPIndex(g, 0.00001);
GoalList.Add(g);

but , Is it I still do no know why mesh point collision does not work.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service