ArchNesting.Nester Class Reference

Public Member Functions

def addContainer (self, container)
 
def addObjects (self, objects)
 
def apply (self, result=None)
 
def clear (self)
 
def getPlacements (self, result=None)
 
def order (self, face, right=False)
 
def run (self)
 
def show (self, result=None)
 
def stop (self)
 
def update (self)
 

Public Attributes

 container
 
 indexedFaces
 
 indexedfaces
 
 objects
 
 progress
 
 results
 
 running
 
 setCounter
 
 shapes
 

Member Function Documentation

◆ addContainer()

def ArchNesting.Nester.addContainer (   self,
  container 
)
addContainer(object): adds a FreeCAD DocumentObject as the container

References ArchNesting.Nester.container.

◆ addObjects()

def ArchNesting.Nester.addObjects (   self,
  objects 
)
addObjects(objects): adds FreeCAD DocumentObjects to the nester

References Gui::MergeDocuments.objects, App::MergeDocuments.objects, ArchNesting.Nester.objects, and ArchNesting.Nester.shapes.

◆ apply()

def ArchNesting.Nester.apply (   self,
  result = None 
)
apply([result]): Applies the computed placements of the given
result, or the last computed result if none is given, to the
document objects given to the nester via addObjects() before
running.

References ArchNesting.Nester.getPlacements(), Gui::MergeDocuments.objects, App::MergeDocuments.objects, and ArchNesting.Nester.objects.

◆ clear()

def ArchNesting.Nester.clear (   self)
clear(): Removes all objects and shape from the nester

References Gui::MergeDocuments.objects, App::MergeDocuments.objects, ArchNesting.Nester.objects, and ArchNesting.Nester.shapes.

◆ getPlacements()

def ArchNesting.Nester.getPlacements (   self,
  result = None 
)
getPlacements([result]): returns a dictionary of hashCode:Placement
pairs from the given result or the last computed result if none
is given. The Placement contains a translation vector and a rotation
to be given to the final object.

References ArchNesting.Nester.container, ArchNesting.Nester.indexedfaces, and ArchNesting.Nester.results.

Referenced by ArchNesting.Nester.apply().

◆ order()

def ArchNesting.Nester.order (   self,
  face,
  right = False 
)
order(face,[right]): returns a list of vertices
ordered clockwise. The first vertex will be the
lefmost one, unless right is True, in which case the
first vertex will be the rightmost one

References WorkingPlane.plane, and DraftVecUtils.project().

◆ run()

◆ show()

def ArchNesting.Nester.show (   self,
  result = None 
)
show([result]): creates shapes in the document, showing
   the given result (list of sheets) or the last result if
   none is provided

References ArchNesting.Nester.container, and ArchNesting.Nester.results.

Referenced by Mod.Show.mTempoVis.TempoVis.show_all_dependencies(), and Mod.Show.mTempoVis.TempoVis.show_all_dependent().

◆ stop()

def ArchNesting.Nester.stop (   self)
stop((): stops the computation

References ArchNesting.Nester.running, App::PropertyExpressionEngine.running, Gui::GUISingleApplication::Private.running, and Gui::PythonDebuggerP.running.

Referenced by ArchPanel.NestTaskPanel.accept(), and ArchPanel.NestTaskPanel.reject().

◆ update()

Member Data Documentation

◆ container

◆ indexedFaces

ArchNesting.Nester.indexedFaces

◆ indexedfaces

ArchNesting.Nester.indexedfaces

◆ objects

◆ progress

ArchNesting.Nester.progress

◆ results

◆ running

◆ setCounter

ArchNesting.Nester.setCounter

◆ shapes


The documentation for this class was generated from the following file:
  • src/Mod/Arch/ArchNesting.py