Gli oggetti mesh possono essere manipolati aggiungendo nuove sfaccettature, cancellando delle sfaccettature, importando da un file STL, trasformando la rete e in molti altri modi. Per una panoramica completa di ciò che si può fare vedere anche la documentazione dell'Ambiente Mesh. Un oggetto mesh non può essere aggiunto direttamente ad un documento esistente. Pertanto, il documento deve creare un oggetto con una classe appropriataa che supporta le mesh. Esempio:
m = Mesh.Mesh()
... # Manipulate the mesh
d = FreeCAD.activeDocument() # Get a reference to the actie document
f = d.addObject("Mesh::Feature", "Mesh") # Create a mesh feature
f.Mesh = m # Assign the mesh object to the internal property
d.recompute()

Description: Aggiunge una sfaccettatura alla maglia
Returns:

Description: Aggiunge un elenco di sfaccettature alla maglia
Returns:

Description: Combina questa mesh con un'altra mesh.
Returns:

Description: Cancella la mesh
Returns:

Description: Rende grossolana la mesh
Returns:

Description: Rimuove un bordo e entrambe le sfaccettature che condividono questo bordo
Returns:

Description: Rimuove una sfaccettatura
Returns:

Description: Rimuove una seriea di sfaccettature
Returns:

Description: Crea una copia di questa maglia
Returns: un oggetto Mesh

Description: Ottiene il numero di aree topologiche indipendenti
Returns: un intero

Description: Ottiene il numero di sfaccettature orientate male
Returns: un intero

Description: Ottiene il numero di segmenti che possono essere anche 0
Returns: un numero intero

Description: Ottiene sezioni trasversali della rete attraverso diversi piani
Returns:

Description: Differenze tra questo oggetto e l'oggetto mesh dato.
Returns:

Description: Riempie i fori
Returns:

Description: Ripara le faccette deformate
Returns:

Description: Rimuove le sfaccettature degenerate
Returns:

Description: Ripara eventuali indici non validi
Returns:

Description: Ripara le autointersezioni
Returns:

Description: Inverte le normali delle mesh
Returns:

Description: Ottiene un elenco di indici delle faccette e dei punti di intersezione
Returns:

Description: Ottiene tutti i piani della rete come segmento. Nel caso peggiore ogni triangolo può essere considerato come unico piano se nessuno dei suoi vicini è complanare.
Returns:

Description: Ottiene un elenco di indici delle faccette che descrivono un segmento
Returns:

Description: Restituisce una lista contenente le diverse componenti (aree separate) della rete come mesh separate
Returns: una lista

Description: Regola le sfaccettature orientate male
Returns:

Description: Controlla se la mesh contiene non-manifolds
Returns: un booleano

Description: Verifica se la rete ha dellle sfaccettature con orientamento incoerente
Returns:

Description: Controlla se la mesh si interseca
Returns:

Description: Ottiene la parte interna all'intersezione
Returns:

Description: Inserisce un vertice in una sfaccettatura
Returns:

Description: Intersezione tra questo oggetto e l'oggetto mesh dato.
Returns:

Description: Controlla se la mesh è un solido
Returns:

Description: Creare una mesh da un segmento
Returns:

Description: Get the index and intersection point of the nearest facet to a ray. The first parameter is a tuple of three floats the base point of the ray, the second parameter is ut uple of three floats for the direction. The result is a dictionary with an index and the intersection point or an empty dictionary if there is no intersection.
Returns: a dictionary

Description: Sposta il punto lungo le sue normali
Returns:

Description: Sposta il punto lungo le sue normali
Returns:

Description: Ottimizza i bordi per ottenere delle faccette migliori
Returns:

Description: Ottimizza i bordi per ottenere delle faccette migliori
Returns:

Description: Ottiene la parte al di fuori l'intersezione
Returns:

Description: Ottiene informazioni dettagliate sulla mesh
Returns:

Description: Read in a mesh object from file.
Returns:

Description: Refine the mesh
Returns:

Description: Remove components with less or equal to number of given facets
Returns:

Description: Remove duplicated facets
Returns:

Description: Remove duplicated points
Returns:

Description: Remove a list of facet indices from the mesh
Returns:

Description: Remove folds on surfaces
Returns:

Description: Remove non-manifolds
Returns:

Description: Apply a rotation to the mesh
Returns:

Description: Sets the point at index.
Returns:

Description: Smooth the mesh
Returns:

Description: Insert a new facet at the border
Returns:

Description: Split edge
Returns:

Description: Split all edges
Returns:

Description: Split facet
Returns:

Description: Swap the common edge with the neighbor
Returns:

Description: Apply a transformation to the mesh
Returns:

Description: Transform the mesh to its eigenbase
Returns:

Description: Apply a translation to the mesh
Returns:

Description: Union of this and the given mesh object.
Returns:

Description: Write the mesh object into file.
Returns:

Description: Write the mesh in OpenInventor format to a string.
Returns: a string

Returns: the area of the mesh object.

Returns: the number of vertices of the mesh object.

Returns: the number of facets of the mesh object.

Returns: the number of points of the mesh object.

Returns: A collection of facets; With this attribute it is possible to get access to the facets of the mesh: for p in mesh.Facets: print f. Facet.Points is a list of coordinate-tupels for the vertices. Facet.PointIndices is a list of indice for the vertices of the facet. WARNING! store Facets in a local variable as it is generated on the fly, each time it is accessed.

Returns: A collection of the mesh points; With this attribute it is possible to get access to the points of the mesh: for p in mesh.Points: print p.x, p.y, p.z, p.Index.WARNING! store Points in a local variable as it is generated on the fly, each time it is accessed.

Returns: the points and face indices as tuple. Topology[0] is a list of all vertices. Each being a tuple of 3 coordinates. Topology[1] is a list of all polygons. Each being a list of vertex indice into Topology[0] WARNING! store Topology in a local variable as it is generated on the fly, each time it is accessed.

Returns: the volume of the mesh object.

Returns: the BoundBox of the object

Returns: the current transformation of the object as matrix

Returns: the current transformation of the object as placement
Questa pagina è recuperata da https://wiki.freecad.org/Mesh_API