original_docstring: Creates a MULTIPATCH shape.
          Parts is a collection of 3D surface patches, each made up of a list of xyzm values.
          PartTypes is a list of types that define each of the surface patches.
          The types can be any of the following module constants: TRIANGLE_STRIP,
          TRIANGLE_FAN, OUTER_RING, INNER_RING, FIRST_RING, or RING.
          If the z (elavation) value is not included, it defaults to 0.
          If the m (measure) value is not included, it defaults to None (NoData).
docstring: Creates a MULTIPATCH shape.
  Parts is a collection of 3D surface patches, each made up of a list of xyzm values.
  PartTypes is a list of types that define each of the surface patches.
  The types can be any of the following module constants: TRIANGLE_STRIP,
  TRIANGLE_FAN, OUTER_RING, INNER_RING, FIRST_RING, or RING.
  If the z (elavation) value is not included, it defaults to 0.
  If the m (measure) value is not included, it defaults to None (NoData).
docstring_tokens: Creates a MULTIPATCH shape . Parts is a collection of 3D surface patches each made up of a list of xyzm values . PartTypes is a list of types that define each of the surface patches . The types can be any of the following module constants : TRIANGLE_STRIP TRIANGLE_FAN OUTER_RING INNER_RING FIRST_RING or RING . If the z ( elavation ) value is not included it defaults to 0 . If the m ( measure ) value is not included it defaults to None ( NoData ) .
code: def multipatch(self, parts, partTypes):
          """Creates a MULTIPATCH shape.
          Parts is a collection of 3D surface patches, each made up of a list of xyzm values.
          PartTypes is a list of types that define each of the surface patches.
          The types can be any of the following module constants: TRIANGLE_STRIP,
          TRIANGLE_FAN, OUTER_RING, INNER_RING, FIRST_RING, or RING.
          If the z (elavation) value is not included, it defaults to 0.
          If the m (measure) value is not included, it defaults to None (NoData)."""
          shapeType = MULTIPATCH
          polyShape = Shape(shapeType)
          polyShape.parts = []
          polyShape.points = []
          for part in parts:
              # set part index position
              polyShape.parts.append(len(polyShape.points))
              # add points
              for point in part:
                  # Ensure point is list
                  if not isinstance(point, list):
                      point = list(point)
                  polyShape.points.append(point)
          polyShape.partTypes = partTypes
          # write the shape
          self.shape(polyShape)
code_tokens: def multipatch ( self , parts , partTypes ) : shapeType = MULTIPATCH polyShape = Shape ( shapeType ) polyShape . parts = [ ] polyShape . points = [ ] for part in parts : polyShape . parts . append ( len ( polyShape . points ) ) for point in part : if not isinstance ( point , list ) : point = list ( point ) polyShape . points . append ( point ) polyShape . partTypes = partTypes self . shape ( polyShape )
short_docstring: Creates a MULTIPATCH shape.
short_docstring_tokens: Creates a MULTIPATCH shape .
comment: """Creates a MULTIPATCH shape.
          Parts is a collection of 3D surface patches, each made up of a list of xyzm values.
          PartTypes is a list of types that define each of the surface patches.
          The types can be any of the following module constants: TRIANGLE_STRIP,
          TRIANGLE_FAN, OUTER_RING, INNER_RING, FIRST_RING, or RING.
          If the z (elavation) value is not included, it defaults to 0.
          If the m (measure) value is not included, it defaults to None (NoData)."""$SEP$# set part index position
  $SEP$# add points
  $SEP$# Ensure point is list
  $SEP$# write the shape
  