def GetResources(self):
     return {
         'MenuText': "Additive Mesh",
         'ToolTip':
         "Creates a additive boolean feature in the selected Lithophane Mes",
         'Pixmap': iconPath('BooleanMeshFeatureAdd.svg')
     }
Exemplo n.º 2
0
 def GetResources(self):
     return {
         'MenuText': "Create Tube",
         'ToolTip':
         "Creates the geometry of the selected Lithophane Image in the shape of a Tube",
         'Pixmap': iconPath('CreateTube.svg')
     }
Exemplo n.º 3
0
 def GetResources(self):
     return {'MenuText': "Measure",
             'ToolTip' : "Displays the dimension of the selected mesh",
             'Pixmap': iconPath('Measure.svg')}
Exemplo n.º 4
0
 def getIcon(self):
     return iconPath('CreateTube.svg')
Exemplo n.º 5
0
    def getIcon(self):
        if not self.Object.Enabled:
            return iconPath('BooleanMeshFeatureDisabled.svg')

        return ICON_MAPPING[self.Object.Mode]
Exemplo n.º 6
0
import FreeCAD
import Mesh

from base_lithophane_processor import BaseLithophaneProcessor
from utils.resource_utils import iconPath
import utils.qtutils as qtutils
from utils import preferences

MODE_MAPPING = {
    'Additive': 'union',
    'Subtractive': 'difference'
}

ICON_MAPPING = {
    'Additive': iconPath('BooleanMeshFeatureAdd.svg'),
    'Subtractive': iconPath('BooleanMeshFeatureSubtract.svg')
}


class BooleanMeshProcessor(BaseLithophaneProcessor):
    def __init__(self, description, checkExecutionFunction, extractMeshFunction, processingStepsFunction):
        super(BooleanMeshProcessor, self).__init__(description)

        self.result = None
        self.checkExecutionFunction = checkExecutionFunction
        self.extractMeshFunction = extractMeshFunction
        self.processingStepsFunction = processingStepsFunction

    def checkExecution(self):
        return self.checkExecutionFunction()
Exemplo n.º 7
0
 def GetResources(self):
     return {
         'MenuText': "Show PointCloud",
         'ToolTip': "Show the point cloud generated for the selected image",
         'Pixmap': iconPath('ShowPointcloud.svg')
     }
Exemplo n.º 8
0
 def __init__(self):
     from utils.resource_utils import iconPath
     self.__class__.Icon = iconPath("Workbench.svg")
Exemplo n.º 9
0
 def GetResources(self):
     return {
         'MenuText': "Scale",
         'ToolTip': "Adjusts the dpi value to scale the final geometry",
         'Pixmap': iconPath('Scale.svg')
     }
Exemplo n.º 10
0
 def GetResources(self):
     return {
         'MenuText': "Make Solid",
         'ToolTip': "Creates a Part Object out of the selected Mesh",
         'Pixmap': iconPath('MakeSolid.svg')
     }
Exemplo n.º 11
0
 def getIcon(self):
     return iconPath('CreateBox.svg')
Exemplo n.º 12
0
 def GetResources(self):
     return {'MenuText': "Cancel Task",
             'ToolTip' : "Cancels the current running Task (e.g. image parsing,...)",
             'Pixmap': iconPath('CancelTask.svg')}
Exemplo n.º 13
0
 def GetResources(self):
     return {
         'MenuText': "Import Image",
         'ToolTip': "Imports an image to be converted to a Lithophane",
         'Pixmap': iconPath('ImportImage.svg')
     }