Part: CompoundFilter

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Part CompoundFilter and the translation is 69% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: Part ExplodeCompound.svg Explode compound
Next: Extrude Part Extrude.svg Arrow-right.svg

Part CompoundFilter.svg Part Compound‏‎Filter

poziția meniului
Part → Compound Filter
nici unul
Prezentat în versiune
A se vedea, de asemenea,
nici unul



CompoundFilter poate fi utilizată pentru extragerea pieselor individuale ale rezultatului unei operații gen [Part Slice], cu care ați feliat un obiect

Acesta poate extrage copiii prin indicii lor, testul copiilor pentru coliziuni cu formă de șablon și filtrează copii pe baza proprietăților lor, cum ar fi lungimea, suprafața, volumul.

Dacă în rezultat există doar un copil, rezultatul este copilul. Dacă există mai mult de un copil la ieșire, rezultatul este un compus nou.

Cum se folosește

  1. Selectați obeictul feliat
  2. Aplicați Menu → Part → Compound → CompoundFilter
  3. Selectați CompoundFilterObject în arborescență
  4. In the properties tab set "Filter Type" to "specific items"
  5. Set items to the elements you want to extract
    1. For a single piece this is a number starting with 0, i.e. if you want to extract the first element enter 0 in this field, 1 for the next element ...
    2. If you want to extract more than one piece at a time separate the numbers with ";", e.g. a value of "0;2" will extract the first and the third element
    3. The general case - which covers the possibilities mentioned above as well - is a list of index ranges, specified in Python notation, but without brackets. Ranges can be chained with semicolon. For example:
      • 7:10 take children of indexes 7, 8 and 9 (indexes are zero-based; range-to index is excluded).
      • 1;2 take children 1 and 2 (first range is child 1, second range is child 2, ranges joined by semicolon)
      • 0;-1 take first children (index 0) and last one (index -1 means last child, -2 - one but last, and so on)
      • 1: take all but first child (missing index means "all the way to the end").
      • ::-1 take all children in reversed order
      • ::2 take all odd-indexed children, i.e. indexes, 1,3,5,..., which are the elments 2,4,6, ...
      • :;: repeat the input compound twice
  6. If you want to extract another piece select the sliced object again. It is now placed under the CompoundFilter in the tree

Repetați procedura de selecție de mai sus. Felia și subelementele sale vor fi afișate sub ambele CompoundFilters; ele nu sunt, desigur, repetate în model. O modalitate foarte rapidă de a extrage o altă piesă este de a copia CompoundFilter. Dar aveți grijă: sunteți întrebat dacă vreți să copiați elementele de la CompoundFilter, pe care trebuie să le răspundeți cu nu, nu vreți să le copiați, ci doar să le referiți.


  • DataBase: Obiectul de filtat.
  • DataFilter Type opțiunile selectabile:
    • bypass; no filter. Compound ul părinte este eliberat, neschimbat.
    • specific items; extract the items listed in the "items" property
    • collision-pass; extract pieces that touch or intersect with 'Stencil' shape.
    • window-volume (default); extract all pieces which have a volume between "Window From" and "Window To" where 100% is the biggest piece - and not the unsliced object. The value of 100% is a reference value which can be overridden by "OverrideMaxVal".
    • window-area; the same as window-volume where the sliced area determines the selection instead of the volume.
    • window-length; the same as window-volume where the length of the edges determines the selection instead of the volume.
    • window-distance; extract children whose distance to 'Stencil' shape is within value window, defined by properties "WindowFrom", "WindowTo", "OverrideMaxVal".
  • DataInvert: If set to true the list as described above is excluded instead of included.
  • DataOverride Max Val: Value window range is defined in percentages of maximum value. The maximum value is computed according to the following set of rules:
    • if 'OverrideMaxVal' is nonzero - use it.
    • otherwise, if 'Stencil' link is supplied - calculate the corresponding value of stencil shape (not applicable to window-distance 'FilterType')
    • otherwise, take maximum value from children in compound to be filtered.
  • DataStencil: Link to a stencil shape. For collision-pass and window-distance FilterType's, stencil is the object to test collision/distance against. For other "window-***" filter types, stencil is used to provide reference value for window percentages (maximum value override). In all other modes, 'Stencil' is ignored.
  • DataWindow From: Upper threshold percentage for selecting pieces, 100% is relative to the biggest piece.
  • DataWindow To: Lower threshold percentage for selecting pieces, 100% is relative to the biggest piece.
  • Dataitems: List or range of elements to be selected if Filter Type is "specific items".


Arrow-left.svg Previous: Part ExplodeCompound.svg Explode compound
Next: Extrude Part Extrude.svg Arrow-right.svg