// // // //Build-in Attributes //Point int pointNumber = @ptnum; int numberOfPoints = @numpt; vector pos0 = point(0, "P", @ptnum); //get attribute setpointattrib(0, "P", @ptnum, set(0,0,0), "set"); // set attribute // //Vertex int vertexNumber = @vtxnum; int numberOfVerticies = @numvtx; vector N = vertex(0, "P", @ptnum); //get attribute // //Primitive int primitiveNumber = @primnum; int numberOfPrimitives = @numprim; int foo = prim(0, "someAttrib", @primnum); //get attribute // //Detail setdetailattrib(0, "Attrib", 666, "set"); int numPts = detailintrinsic(1, "pointcount"); //get number of points from input 2