Skip to content

Instantly share code, notes, and snippets.

@sbaer
Created July 25, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbaer/3176890 to your computer and use it in GitHub Desktop.
Save sbaer/3176890 to your computer and use it in GitHub Desktop.
PointCloud Color/Normal test
import rhinoscriptsyntax as rs
import scriptcontext
def luistest():
id = rs.GetObject("select point cloud", rs.filter.pointcloud)
pc = scriptcontext.doc.Objects.Find(id)
pc = pc.PointCloudGeometry
print "ContainsColors =",pc.ContainsColors
c = pc.GetColors()
print len(c)
print "ContainsNormals =", pc.ContainsNormals
n = pc.GetNormals()
print len(n)
luistest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment