<?xml version="1.0" encoding="utf-8" ?>
<!-- Description of the model "Triangulate Face" Operation -->
<SMTK_AttributeResource Version="3">
  <Definitions>
    <!-- Operation -->
    <include href="smtk/operation/Operation.xml"/>
    <AttDef Type="triangulate faces" Label="Faces - Triangulate" BaseType="operation">
      <BriefDescription>Triangulate model faces.</BriefDescription>
      <DetailedDescription>
        Triangulate model faces into a mesh using Delaunay.

        This operation creates smtk::mesh::MeshSets associated with
        smtk::mesh::Faces using Delaunay. The MeshSets reside in a new
        smtk::mesh::Resource associated with the faces' model. The
        resulting triangulation is composed only of the boundary points.
      </DetailedDescription>
      <AssociationsDef Name="faces" NumberOfRequiredValues="1" Extensible="true">
        <Accepts><Resource Name="smtk::model::Resource" Filter="face"/></Accepts>
        <BriefDescription>The faces to triangulate.</BriefDescription>
      </AssociationsDef>
      <ItemDefinitions>
        <Void Name="validate polygons" Label="Validate Polygons prior to Triangulation"
              Optional="true" AdvanceLevel="1">
          <BriefDescription>Ensure the polygons describing the
          boundaries are valid before triangulating the faces.</BriefDescription>
        </Void>
      </ItemDefinitions>
    </AttDef>
    <!-- Result -->
    <include href="smtk/operation/Result.xml"/>
    <AttDef Type="result(triangulate faces)" BaseType="result">
      <ItemDefinitions>
        <Resource Name="meshresource" NumberOfRequiredValues="1" HoldReference="true">
          <Accepts><Resource Name="smtk::mesh::Resource"/></Accepts>
        </Resource>
        <Component Name="mesh_created" NumberOfRequiredValues="1" Extensible="true">
          <Accepts><Resource Name="smtk::model::Resource" Filter=""/></Accepts>
        </Component>
      </ItemDefinitions>
    </AttDef>
  </Definitions>
  <Views>
    <View Type="Operation" Title="Triangulate Face" FilterByAdvanceLevel="true" UseSelectionManager="true">
      <InstancedAttributes>
        <Att Type="triangulate face"/>
      </InstancedAttributes>
    </View>
  </Views>
</SMTK_AttributeResource>
