NXOpen.UF.Facet.AddFacetToModel

Facet.AddFacetToModel()

Refer to UF_FACET_add_facet_to_model for documentation.

Signature: AddFacetToModel(model, numVertices, vertices, normals, adjacentFacetIds)

Parameters:
  • model (Tag) – The model to which the facet is to be added
  • numVertices (int) – The number of vertices in the new facet
  • vertices (list of float) – The vertices of the new facet. Each element of three double in this argument represents a 3-space (X, Y, Z) position.
  • normals (list of float) – The vertex normals for the new facet. Each element of three double in this argument represents a 3-space (X, Y, Z) normal vector If this is specified as NULL then the facet normal will be computed and used for all of the vertices in the new facet.
  • adjacentFacetIds (list of int) – The facets which are adjacent to the new facet at each of its edges. If there is no adjacent facet to the edge then UF_FACET_NULL_FACET_ID should be specified for that edge.
Returns:

The id of the new facet created

Return type:

int

License requirements: ASSEMBLIES MODULE