I am using ghpython. I am not sure how can I find the grasshopper components in the Grasshopper library ?
like cull pattern for example
you can call any gh component by:
from ghpythonlib import components as ghcomp ghcomp.ConstructPoint(0.0,0.0,0.0)
However this is not how you actually script. Especially regarding lists and trees, since you can directly iterate over each item.
Usually everything related to geometry is part of the Rhino.Geometry namespace (part of Rhinocommon), as a simplification for Python there is also the rhinoscriptsyntax module allowing you to access Rhinocommon with much more ease. Grasshopper components are mainly build ontop of Rhinocommon.
I am not sure how can I find the grasshopper components in the Grasshopper library
They don’t exist. Grasshopper components are made by scripting using C# and Rhincommon. They are combinations of things. Cull pattern would be a simple loop operation. You could call components with Node In Code but it doesn’t really make sense for the simple things like culling.