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