original_docstring: Create a stud shape prototype.
  
          Creates a prototype and sets the relationship to its instancer.
  
          Args:
              stage (Usd.Stage): The payload stage to operate on.
              instancer (UsdGeom.PointInstancer): The instancer the prototype belongs to.
              proto_container: The parent prim containing prototypes.
              mtl_id: The unique id for the material for this prototype.
          
docstring: Create a stud shape prototype.
  Creates a prototype and sets the relationship to its instancer.
docstring_tokens: Create a stud shape prototype . Creates a prototype and sets the relationship to its instancer .
code: def _create_stud_geom(self, stage, instancer, proto_container, mtl_id):
          """Create a stud shape prototype.
  
          Creates a prototype and sets the relationship to its instancer.
  
          Args:
              stage (Usd.Stage): The payload stage to operate on.
              instancer (UsdGeom.PointInstancer): The instancer the prototype belongs to.
              proto_container: The parent prim containing prototypes.
              mtl_id: The unique id for the material for this prototype.
          """
          mtl_display_id = VoxBaseMaterial.get(mtl_id).get_display_id()
          mesh = UsdGeom.Mesh.Define(stage, proto_container.GetPath().AppendPath("VoxelStud_{}".format(mtl_display_id)))
          mesh.CreatePointsAttr(StudMesh.points)
          mesh.CreateFaceVertexCountsAttr(StudMesh.face_vertex_counts)
          mesh.CreateFaceVertexIndicesAttr(StudMesh.face_vertex_indices)
          mesh.CreateNormalsAttr(StudMesh.normals)
          mesh.SetNormalsInterpolation(StudMesh.normals_interpolation)
          mesh.CreateSubdivisionSchemeAttr(UsdGeom.Tokens.none)
          self._add_binding_target(mtl_id, mesh.GetPath(), GeometryVariantSetNames.POINT_INSTANCES,
                                   point_shape_var=PointShapeVariantSetNames.STUDS)
          self._set_common_point_attrs(mesh, instancer, mtl_id)
code_tokens: def _create_stud_geom ( self , stage , instancer , proto_container , mtl_id ) : mtl_display_id = VoxBaseMaterial . get ( mtl_id ) . get_display_id ( ) mesh = UsdGeom . Mesh . Define ( stage , proto_container . GetPath ( ) . AppendPath ( "VoxelStud_{}" . format ( mtl_display_id ) ) ) mesh . CreatePointsAttr ( StudMesh . points ) mesh . CreateFaceVertexCountsAttr ( StudMesh . face_vertex_counts ) mesh . CreateFaceVertexIndicesAttr ( StudMesh . face_vertex_indices ) mesh . CreateNormalsAttr ( StudMesh . normals ) mesh . SetNormalsInterpolation ( StudMesh . normals_interpolation ) mesh . CreateSubdivisionSchemeAttr ( UsdGeom . Tokens . none ) self . _add_binding_target ( mtl_id , mesh . GetPath ( ) , GeometryVariantSetNames . POINT_INSTANCES , point_shape_var = PointShapeVariantSetNames . STUDS ) self . _set_common_point_attrs ( mesh , instancer , mtl_id )
short_docstring: Create a stud shape prototype.
short_docstring_tokens: Create a stud shape prototype .
comment: """Create a stud shape prototype.
  
          Creates a prototype and sets the relationship to its instancer.
  
          Args:
              stage (Usd.Stage): The payload stage to operate on.
              instancer (UsdGeom.PointInstancer): The instancer the prototype belongs to.
              proto_container: The parent prim containing prototypes.
              mtl_id: The unique id for the material for this prototype.
          """