Visualizzaː Taglio sezione persistente

From FreeCAD Documentation
Revision as of 23:42, 25 March 2023 by Marco T (talk | contribs) (Created page with "== Applicazioni ==")
Other languages:

Taglio sezione persistente

Posizione nel menu
Visualizza → Taglio sezione persistente
Ambiente
Tutti
Avvio veloce
Nessuno
Introdotto nella versione
0.20
Vedere anche
Piano di taglio

Descrizione

La funzione Taglio sezione persistente è disponibile per tutti gli ambienti di lavoro, ma funziona solo per gli oggetti Part e PartDesign e per i relativi assiemi. Crea un taglio persistente di oggetti e assemblaggi. Poiché il risultato del taglio è un normale oggetto Sottrazione Booleana, può essere ulteriormente modificato o, ad esempio, stampato in 3D. Vedere sotto per le possibili applicazioni.

Un'assieme tagliato. Alcune facce tagliate sono state colorate manualmente. La parte gialla non è tagliata perché è stata volutamente spostata di un micron in un'altra parte.

Utilizzo

La finestra di dialogo Taglio sezione persistente.

La finestra di dialogo Taglio sezione persistente si apre tramite il menu Visualizza → Taglio sezione persistente. È indipendente dall'ambiente di lavoro corrente e dal documento attualmente aperto. Può essere staccato dalla sua posizione di apertura premendo il pulsante in alto a destra nella finestra di dialogo.

La funzione Taglio sezione persistente prende in considerazione tutti gli oggetti Part attualmente visibili nel documento attivo. Pertanto è possibile controllare cosa verrà tagliato, rendendo visibile o meno una parte. Selezionando una delle opzioni Taglio nella finestra di dialogo la funzione viene attivata. È quindi possibile inserire una posizione (nelle coordinate del documento) o utilizzare i cursori per impostare la posizione di taglio. È anche possibile combinare i tagli, ad esempio per tagliare in direzione X e Z. I bottoni Inverti capovolgono il lato tagliato.

Non appena l'opzione Taglio è spuntata nella finestra di dialogo, si ottiene un oggetto tagliato nella vista ad albero. Il suo nome è ad es. SectionCutY quando si tratta di un taglio in direzione Y.

L'opzione di dialogo Mantieni visibili solo i tagli alla chiusura nasconde tutto nella vista ad albero tranne l'oggetto tagliato quando si fa clic sul pulsante Chiudi per chiudere la finestra di dialogo.

Per rimuovere l'oggetto tagliato, deseleziona tutte le opzioni Taglio.

Deselezionando tutte le opzioni Taglio, il pulsante Aggiorna vista diventa attivo. Quando viene premuto, acquisisce una sorta di screenshot degli oggetti Part attualmente visibili. Questo sarà usato quando si seleziona la prossima volta un'opzione Taglio. L'aggiornamento è necessario quando si cambia documento. È inoltre utile per gli assiemi, dove si volesse nascondere alcune parti o aggiungerle successivamente al taglio. In questo caso l'aggiornamento ricalcola i valori min/max dei cursori e taglia le posizioni in base alle dimensioni dell'oggetto attualmente visibile.

Se l'opzione Auto nella sezione Taglia faccia è selezionata, il colore e la trasparenza degli oggetti tagliati saranno presi per la faccia tagliata. Funziona solo se tutti gli oggetti tagliati hanno lo stesso colore o trasparenza.

L'opzione Taglia oggetti intersecanti permette di tagliare anche oggetti che si intersecano tra loro. Le intersezioni degli assiemi a volte si verificano per oggetti progettati per toccarsi solo tra loro a causa di problemi di precisione numerica. Lo svantaggio dell'opzione è che tutti gli oggetti visibili avranno lo stesso colore. Questo colore può essere specificato come nella sezione della faccia tagliata della finestra di dialogo.
Se si necessita del taglio per es. per una bella immagine con diversi colori delle facce, si possono cambiare i loro colori usando lo strumento Impostare i colori delle facce.

Nota: Per gli assiemi i cursori nella finestra di dialogo sono disabilitati (eccetto quello per la trasparenza). Il motivo è che un movimento del cursore comporta molte operazioni di taglio in breve tempo. Per gli assiemi questo consuma rapidamente tutta la potenza della CPU e un movimento del cursore rallentato non è utile.

Quando si seleziona un oggetto tagliato nella vista ad albero e poi si apre la finestra di dialogo Taglio sezione persistente, le posizioni di taglio verranno lette nella finestra di dialogo.

Applicazioni

  • An important use case is that Section Cut creates real cuts, not hollow ones like the Clip Plane feature.
  • Section Cut is useful for assemblies to visualize for example the working principle of a device. You thereby might want to color certain cut faces using the Set face colors tool. To use the tool, switch to the Part or PartDesign workbench, right-click on the cut object in the tree view and select in the context menu Set colors.
  • Without the option Cut intersecting objects only parts that don't intersect others will be cut. This can be used as collision test.
  • The Section Cut feature can be used for technical drawings to highlight certain areas or to be able to draw in dimensions. The image below shows an example where the TechDraw features ActiveView and View are used.

A technical drawing where a Section Cut result is used. (Click on the image for full size.)

Special cut positions

A slant cut of an assembly.
  • For example in the first image in this page only one quarter of the assembly is cut. This was done by creating a cut in X direction. Then in the resulting cut object SectionCutX the placement of the subobject SectionCutBoxX was changed.
  • To get a cut in any direction, you can do this:
  1. Create a new Std Part container.
  2. Select all objects you want to cut in the tree view and move them into the container.
  3. Now set the placement of the container to a rotation of your choice. For the image at the left, the container was rotated by 45° around the X and Z axis and the section cut was performed in X direction.

Limitations

An assembly where two parts intersect each other and that are therefore not cut. Note the color artifacts at the cut face.
  • Important: The Section Cut feature works poorly with OpenCASCADE 7.4 and older due to bugs. It is therefore recommended to use OpenCASCADE 7.5 or newer (all builds of FreeCAD version 0.20 and above assure this).
  • version 1.0 and above: The option Cut intersecting objects will color all visible parts the same. This can technically not be avoided. However, if one needs the persistent cut for e.g. a presentation, see the method described above how to reset the color manually.
  • version 0.20 and below: In assemblies parts that intersect each other cannot be cut. Normally intersecting objects will not be cut while the others will. However, sometimes the cutting can produce strange results which is a bug in the OpenCASCADE libraries.
    To get a cut view also for intersecting objects, you can use the the macro Cross Section.
  • version 0.20 and below: Especially when using the A2plus workbench, some the assembled parts can overlap each other by just a micron due to internal rounding errors. To fix this, add a micron as space in the constraint settings.
  • There can be color artifacts in the cut result. If and how depends on the OpenCASCADE library and also on the view position. In many cases the color artifacts disappear when the 3D view is slightly rotated.
  • When having cut objects with different colors, it is not possible to apply automatically their color to the corresponding cut faces. All cut faces will get the same color selected in the dialog.
  • When using the A2plus workbench, it is not possible to apply automatically the color of the assembled parts to the corresponding cut faces. All cut faces will get the same color selected in the dialog. The reason is that A2plus does not input the parts as link but loads them as file.

Background Info

Section Cut is inspired by the macro Cross Section and works technically this way:

All visible objects are put into a Part Compound container. For the option Cut intersecting objects a Boolean Fragments container is used instead. The compound is cut using a Part Box object. The box must be as large as necessary to cover the whole volume of all visible objects. To achieve this, the bounding box of the objects is acquired. When changing the view by adding/removing objects or changing the document, the bounding box must be updated. This is done when the button Refresh view is clicked.