def GetResources(self):
     return {
         'MenuText': "Additive Mesh",
         'ToolTip':
         "Creates a additive boolean feature in the selected Lithophane Mes",
         'Pixmap': iconPath('BooleanMeshFeatureAdd.svg')
     }
 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')
     }
Beispiel #3
0
 def GetResources(self):
     return {'MenuText': "Measure",
             'ToolTip' : "Displays the dimension of the selected mesh",
             'Pixmap': iconPath('Measure.svg')}
 def getIcon(self):
     return iconPath('CreateTube.svg')
Beispiel #5
0
    def getIcon(self):
        if not self.Object.Enabled:
            return iconPath('BooleanMeshFeatureDisabled.svg')

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