Grasshopper

algorithmic modeling for Rhino

Hi,

writing a c# component (script), and i wonder if GH_Point3D is faster / smaller than Point3d (when having lists of many points).

I want to use the GH for internal processing of point data (c# Lists), and at the last step convert it back to Point3d for the output - is this the way to use it? If yes, is there a simple way to cast them back to Point3d (without iterating the list manually)?

thanks!

Views: 405

Replies to This Discussion

GH_Point is significantly larger than Point3d. Point3d is as efficient as it gets, it's a struct which contains 3 doubles. GH_Point is a class which contains a Point3d and also reference data. This is usually just a null pointer, but that still takes 64 bits of memory on a 64-bit system.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service