liatool package

Submodules

liatool.foam module

class liatool.foam.BlenderObj2PolyMesh(*, obj=None, meshCase=None)[source]

Bases: object

liatool.foam.writeFOAMfile(caseDir, location, object, body)[source]

liatool.illumination module

class liatool.illumination.Illumination(*, process, spaceProfile)[source]

Bases: object

simulate(laserBeam)[source]

liatool.imageSpot module

class liatool.imageSpot.ColorBar(*, bottomLeftValue, topRightValue)[source]

Bases: Image

getColor(x)[source]
class liatool.imageSpot.Image(imageName)[source]

Bases: ABC

class liatool.imageSpot.ImageSpot(*, laserSpot)[source]

Bases: object

property colorBar
getValue(*, x=0, y=0)[source]
property maxRadius
class liatool.imageSpot.Spot(*, laserSpot)[source]

Bases: Image

getColor(x, y)[source]
getPixelIndex(x, y)[source]
liatool.imageSpot.findNearestColor(sampleColor, colorBar)[source]

liatool.laserBeam module

class liatool.laserBeam.LaserBeam(*, laserSpot=None, laserBeam=None, point=None, axis=None)[source]

Bases: object

property axis
getValue(*, coords=None, normal=None)[source]
inBeam(*, coords=None)[source]
property point
property spaceProfil
class liatool.laserBeam.SpaceProfile(*, radius=None, value=None)[source]

Bases: object

getValue(*, radius=None)[source]
property maxRadius

liatool.robotInstructions module

class liatool.robotInstructions.Instruction(*, index, position)[source]

Bases: object

property frequency
property index
property position
setFrequency(value)[source]
setVelocity(value)[source]
property velocity
class liatool.robotInstructions.Position(*, x=0, y=0, z=0, rx=0, ry=0, rz=0)[source]

Bases: object

property rx
property ry
property rz
property x
property y
property z
class liatool.robotInstructions.RobotInstructions(filePath)[source]

Bases: object

exportInstructions(userProcess)[source]
importInstructions()[source]
property instructions

liatool.thumbProcess module

class liatool.thumbProcess.ThumbProcess(context)[source]

Bases: object

simulate(context)[source]

liatool.ui_beam module

class liatool.ui_beam.BeamProperties[source]

Bases: PropertyGroup

axis: <_PropertyDeferred, <built-in function FloatVectorProperty>, {'name': 'Beam Axis', 'description': 'Laser Beam Axis', 'unit': 'LENGTH', 'default': (1.0, 0.0, 0.0), 'min': -1, 'max': 1, 'size': 3, 'update': <function BeamProperties.<lambda> at 0x78b99c9b9510>}>
check(context)[source]
deleteLaserBeam(context)[source]
laser_beam_length: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Laser Beam Scale', 'description': 'Laser Beam Scale', 'default': 1, 'min': 1, 'max': 100, 'step': 10, 'update': <function BeamProperties.<lambda> at 0x78b99c9b96c0>}>
point: <_PropertyDeferred, <built-in function FloatVectorProperty>, {'name': 'Laser Point', 'description': 'Laser Reference Point', 'unit': 'LENGTH', 'default': (-5.0, 0.0, 0.0), 'size': 3, 'update': <function BeamProperties.<lambda> at 0x78b99c9b9480>}>
setDefaultValues(context)[source]
show_beam: <_PropertyDeferred, <built-in function BoolProperty>, {'name': 'Show Laser Beam', 'description': 'Show Laser Beam', 'default': False, 'update': <function BeamProperties.<lambda> at 0x78b99c9b9750>}>
snapCursorToSelected()[source]
spot_axis: <_PropertyDeferred, <built-in function FloatVectorProperty>, {'name': 'Spot Horizontal Axis', 'description': 'Spot Horizontal Axis', 'unit': 'LENGTH', 'default': (0.0, -1.0, 0.0), 'min': -1, 'max': 1, 'size': 3}>
updateLaserBeam(context)[source]
class liatool.ui_beam.ILSP_PT_beam[source]

Bases: ILSPpanel, Panel

bl_label = 'Laser Beam'
draw(context)[source]
classmethod poll(context)[source]
class liatool.ui_beam.LaserMaterial[source]

Bases: object

property get

liatool.ui_domain module

class liatool.ui_domain.DomainProperties[source]

Bases: PropertyGroup

check(context)[source]
domain_object: <_PropertyDeferred, <built-in function PointerProperty>, {'type': <class 'bpy_types.Object'>}>
mesh_fineness: <_PropertyDeferred, <built-in function EnumProperty>, {'name': 'Background Mesh Fineness', 'description': 'Background Mesh Fineness', 'items': (('veryCoarse', 'Very Coarse', ''), ('coarse', 'Coarse', ''), ('moderate', 'Moderate', ''), ('fine', 'Fine', ''), ('veryFine', 'Very Fine', '')), 'default': 'moderate', 'update': <function DomainProperties.<lambda> at 0x78b99bf57f40>}>
octree: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Octree Depth', 'description': 'Octree Depth', 'default': 8, 'min': 1, 'max': 10}>
selected_object: <_PropertyDeferred, <built-in function PointerProperty>, {'name': 'Selected Object', 'description': 'Selected Object', 'type': <class 'bpy_types.Object'>, 'poll': <function DomainProperties.<lambda> at 0x78b99bf57e20>}>
setDefaultValues(context)[source]
class liatool.ui_domain.ILSP_OT_domain_generateMesh[source]

Bases: Operator

bl_description = 'Report the volume of the active mesh'
bl_idname = 'domain.generate_mesh'
bl_label = '3D-Print Info Volume'
execute(context)[source]
classmethod poll(context)[source]
class liatool.ui_domain.ILSP_PT_domain[source]

Bases: ILSPpanel, Panel

bl_label = 'Domain Generator'
draw(context)[source]
class liatool.ui_domain.iLspDomain[source]

Bases: PropertyGroup

domain_object: <_PropertyDeferred, <built-in function PointerProperty>, {'type': <class 'bpy_types.Object'>}>
object: <_PropertyDeferred, <built-in function PointerProperty>, {'type': <class 'bpy_types.Object'>}>
props: <_PropertyDeferred, <built-in function PointerProperty>, {'type': <class 'liatool.ui_domain.DomainProperties'>}>
setDomainState(*, object=None, domain_object=None, props=None)[source]

liatool.ui_panel module

class liatool.ui_panel.ILSPpanel[source]

Bases: object

bl_category = 'LIATool'
bl_region_type = 'UI'
bl_space_type = 'VIEW_3D'
classmethod poll(context)[source]

liatool.ui_process module

class liatool.ui_process.ILSP_OT_process_simulate[source]

Bases: Operator

bl_description = 'Report the volume of the active mesh'
bl_idname = 'process.simulate'
bl_label = '3D-Print Info Volume'
execute(context)[source]
classmethod poll(context)[source]
class liatool.ui_process.ILSP_OT_user_process_ADD[source]

Bases: Operator

bl_idname = 'ilsp_user_process.new_item'
bl_label = 'Add'
execute(context)[source]
class liatool.ui_process.ILSP_OT_user_process_CLEAR[source]

Bases: Operator

bl_idname = 'ilsp_user_process.clear'
bl_label = 'Clear'
execute(context)[source]
class liatool.ui_process.ILSP_OT_user_process_COPY[source]

Bases: Operator

bl_idname = 'ilsp_user_process.copy'
bl_label = 'DO'
execute(context)[source]
class liatool.ui_process.ILSP_OT_user_process_DELETE[source]

Bases: Operator

bl_idname = 'ilsp_user_process.delete_item'
bl_label = 'Delete'
execute(context)[source]
index: <_PropertyDeferred, <built-in function IntProperty>, {}>
classmethod poll(context)[source]
class liatool.ui_process.ILSP_PT_process[source]

Bases: ILSPpanel, Panel

bl_label = 'Process Prescription'
draw(context)[source]
classmethod poll(context)[source]
class liatool.ui_process.ILSP_UL_materials[source]

Bases: UIList

draw_item(context, layout, data, item, icon, active_data, active_propname, index)[source]
class liatool.ui_process.ILSP_UL_user_process[source]

Bases: UIList

draw_item(context, layout, data, item, icon, active_data, active_propname, index)[source]
class liatool.ui_process.ProcessProperties[source]

Bases: PropertyGroup

class Material[source]

Bases: PropertyGroup

material: <_PropertyDeferred, <built-in function PointerProperty>, {'type': <class 'bpy.types.Material'>}>
class UserProcess[source]

Bases: PropertyGroup

dx: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'dx', 'description': 'Displacement Increment x-axis Direction', 'default': 0.0, 'step': 10}>
dy: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'dy', 'description': 'Displacement Increment y-axis Direction', 'default': 0.0, 'step': 10}>
dz: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'dz', 'description': 'Displacement Increment z-axis Direction', 'default': 0.0, 'step': 10}>
frequency: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'f', 'description': 'Frequency [Hz]', 'default': 1.0, 'step': 10}>
rx: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'rx', 'description': 'Rotation Increment Around x-axis [deg]', 'default': 0.0, 'step': 10}>
ry: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'ry', 'description': 'Rotation Increment Around y-axis [deg]', 'default': 0.0, 'step': 10}>
rz: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'rz', 'description': 'Rotation Increment Around z-axis [deg]', 'default': 0.0, 'step': 10}>
velocity: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'v', 'description': 'Velocity', 'default': 1.0, 'step': 10}>
auto_tresholds: <_PropertyDeferred, <built-in function BoolProperty>, {'name': 'automatic tresholds', 'description': 'automatic tresholds', 'default': True, 'update': <function ProcessProperties.<lambda> at 0x78b99bf11e10>}>
check(context)[source]
end_line: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'End Line Number', 'default': 1, 'min': 1}>
exportRobotInstructionFile(context)[source]
material_idx: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Index of material', 'default': 0, 'min': 0, 'update': <function ProcessProperties.<lambda> at 0x78b99bf11fc0>}>
materials: <_PropertyDeferred, <built-in function CollectionProperty>, {'type': <class 'liatool.ui_process.ProcessProperties.Material'>}>
max_treshold: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'maximal treshold', 'description': 'maximal treshold', 'default': 1.0, 'step': 10, 'update': <function ProcessProperties.<lambda> at 0x78b99bf11cf0>}>
max_treshold_max: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'maximal treshold max', 'description': 'maximal treshold max', 'default': 1.0, 'step': 10}>
min_treshold: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'minimal treshold', 'description': 'minimal treshold', 'default': 0.0, 'step': 10, 'update': <function ProcessProperties.<lambda> at 0x78b99bf11c60>}>
min_treshold_min: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'minimal treshold min', 'description': 'minimal treshold min', 'default': 0.0, 'step': 10}>
no_repeats: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Number of Repeats', 'default': 1, 'min': 1}>
pivot_point: <_PropertyDeferred, <built-in function FloatVectorProperty>, {'name': 'Pivot Point', 'description': 'Pivot Point', 'unit': 'LENGTH', 'default': (0.0, 0.0, 0.0), 'size': 3, 'update': <function ProcessProperties.<lambda> at 0x78b99bf11900>}>
readRobotInstructionFile(context)[source]
robot_file_path_export: <_PropertyDeferred, <built-in function StringProperty>, {'name': '', 'description': 'Export Robot Instructions File Path', 'default': '', 'maxlen': 1024, 'subtype': 'FILE_PATH', 'update': <function ProcessProperties.<lambda> at 0x78b99bf11b40>}>
robot_file_path_import: <_PropertyDeferred, <built-in function StringProperty>, {'name': '', 'description': 'Import Robot Instructions File Path', 'default': '', 'maxlen': 1024, 'subtype': 'FILE_PATH', 'update': <function ProcessProperties.<lambda> at 0x78b99bf11ab0>}>
selected_domain: <_PropertyDeferred, <built-in function PointerProperty>, {'name': 'Selected Domain', 'description': 'Selected Domain', 'type': <class 'bpy_types.Object'>, 'poll': <function ProcessProperties.<lambda> at 0x78b99bf116c0>}>
setDefaultValues(context)[source]
setMaxTreshold(context)[source]
setMinTreshold(context)[source]
setPivotPoint(context)[source]
setPivotPointToSelected(context)[source]
setTresholds(context)[source]
set_pivot_point_selected: <_PropertyDeferred, <built-in function BoolProperty>, {'name': 'Set Pivot Point To Selected', 'description': 'Set Pivot Point To Selected', 'update': <function ProcessProperties.<lambda> at 0x78b99bf117e0>, 'default': False}>
simulation_type: <_PropertyDeferred, <built-in function EnumProperty>, {'name': '', 'description': 'Simulation Type', 'items': [('SUMMATION', 'SUMMATION', ''), ('MAXIMUM', 'MAXIMUM', '')]}>
start_line: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Start Line Number', 'default': 1, 'min': 1}>
user_process: <_PropertyDeferred, <built-in function CollectionProperty>, {'type': <class 'liatool.ui_process.ProcessProperties.UserProcess'>}>
user_process_idx: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Index of user process', 'default': 0, 'min': 0}>
liatool.ui_process.my_handler(scene, context)[source]

liatool.ui_spot module

class liatool.ui_spot.ILSP_OT_spot_profile_ADD[source]

Bases: Operator

bl_idname = 'ilsp_spot_profile.new_item'
bl_label = 'Add'
execute(context)[source]
class liatool.ui_spot.ILSP_OT_spot_profile_DELETE[source]

Bases: Operator

bl_idname = 'ilsp_spot_profile.delete_item'
bl_label = 'Delete'
execute(context)[source]
index: <_PropertyDeferred, <built-in function IntProperty>, {}>
classmethod poll(context)[source]
class liatool.ui_spot.ILSP_OT_spot_profile_view_thumbnail[source]

Bases: Operator

bl_description = 'View larger thumbnail'
bl_idname = 'ilsp_spot_profile.view_thumbnail'
bl_label = ''
bl_options = {'INTERNAL'}
execute(context)[source]
class liatool.ui_spot.ILSP_PT_spot[source]

Bases: ILSPpanel, Panel

bl_label = 'Laser Spot'
draw(context)[source]
classmethod poll(context)[source]
class liatool.ui_spot.ILSP_UL_spot_profile[source]

Bases: UIList

draw_item(context, layout, data, item, icon, active_data, active_propname, index)[source]
class liatool.ui_spot.SpotProperties[source]

Bases: PropertyGroup

class Profile[source]

Bases: PropertyGroup

radius: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Radius', 'description': 'Radius', 'default': 0.0, 'min': 0, 'step': 10, 'update': <function SpotProperties.Profile.<lambda> at 0x78b99bf13c70>}>
value: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Value', 'description': 'Value', 'default': 1.0, 'min': 0, 'max': 1, 'step': 10}>
check(context)[source]
color_bar_file_path: <_PropertyDeferred, <built-in function StringProperty>, {'name': '', 'description': 'Color Bar File Path', 'default': '', 'maxlen': 1024, 'subtype': 'FILE_PATH', 'update': <function SpotProperties.<lambda> at 0x78b99bf13eb0>}>
consider_face_normal: <_PropertyDeferred, <built-in function BoolProperty>, {'name': 'Consider Face Normal', 'description': 'Consider Face Normal', 'default': True}>
first_treshold: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Bottom/Left Value', 'description': 'Color Bar Bottom/Left Value', 'default': 0}>
image_file_path: <_PropertyDeferred, <built-in function StringProperty>, {'name': '', 'description': 'Image File Path', 'default': '', 'maxlen': 1024, 'subtype': 'FILE_PATH', 'update': <function SpotProperties.<lambda> at 0x78b99bf13d90>}>
profile: <_PropertyDeferred, <built-in function CollectionProperty>, {'type': <class 'liatool.ui_spot.SpotProperties.Profile'>}>
profile_idx: <_PropertyDeferred, <built-in function IntProperty>, {'name': 'Index of spot profile', 'default': 0, 'min': 0}>
pure_square_radius: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Pure Square Radius', 'description': 'Pure Square Radius', 'default': 0.5, 'min': 0, 'step': 10}>
readColorBarFile(context)[source]
readImageFile(context)[source]
second_treshold: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Top/Right Value', 'description': 'Color Bar Top/Right Value', 'default': 1.0}>
setDefaultValues(context)[source]
shape: <_PropertyDeferred, <built-in function EnumProperty>, {'name': 'Laser Spot Shape', 'description': 'Laser Spot Shape', 'items': (('image', 'Image Data', ''), ('circle', 'Circular Laser Spot', ''), ('square', 'Square Laser Spot', '')), 'default': 'image'}>
show_image_in_new_window(image)[source]
spot_size: <_PropertyDeferred, <built-in function FloatProperty>, {'name': 'Spot Size', 'description': 'Spot Size', 'default': 0.5, 'min': 0, 'step': 10}>

liatool.ui_update module

class liatool.ui_update.ILSP_OT_addon_download[source]

Bases: Operator

bl_description = 'Addon Download'
bl_idname = 'addon.download'
bl_label = 'LIATool'
execute(context)[source]
classmethod poll(context)[source]
class liatool.ui_update.ILSP_OT_addon_refresh[source]

Bases: Operator

bl_description = 'Addon Refresh'
bl_idname = 'addon.refresh'
bl_label = 'LIATool'
execute(context)[source]
classmethod poll(context)[source]
class liatool.ui_update.ILSP_OT_use_token[source]

Bases: Operator

bl_description = 'Use Token'
bl_idname = 'use.token'
bl_label = 'LIATool'
execute(context)[source]
classmethod poll(context)[source]
class liatool.ui_update.ILSP_PT_update[source]

Bases: ILSPpanel, Panel

bl_label = 'LIATool (0.5.1)'
bl_options = {'DEFAULT_CLOSED'}
draw(context)[source]
classmethod poll(context)[source]
class liatool.ui_update.UpdateProperties[source]

Bases: PropertyGroup

check(context)[source]
details: <_PropertyDeferred, <built-in function BoolProperty>, {'name': 'Details', 'description': 'Details', 'default': False}>
remote_branch: <_PropertyDeferred, <built-in function EnumProperty>, {'name': '', 'description': 'Remote Branch', 'items': [('DEVELOPER', 'DEVELOPER', ''), ('RELEASE', 'RELEASE', '')], 'update': <function UpdateProperties._updateRemoteBranch at 0x78b998309630>}>
remote_version: <_PropertyDeferred, <built-in function EnumProperty>, {'name': '', 'description': 'Remote Version', 'items': <function UpdateProperties._remoteVersionItems at 0x78b9983096c0>}>
token: <_PropertyDeferred, <built-in function StringProperty>, {'name': 'token', 'description': 'Token'}>

liatool.userProcess module

class liatool.userProcess.LaserShotStep(initPosition=None)[source]

Bases: object

add(other)[source]
addIncrement(increment)[source]
zero()[source]
class liatool.userProcess.UserProcess(*, ilspDomain=None, processSteps=None)[source]

Bases: object

property coords
property ilspDomain
property normals
property processSteps
property stepIndex
update()[source]

liatool.userProcess_new module

class liatool.userProcess_new.LaserShotStep[source]

Bases: object

class liatool.userProcess_new.UserProcess(*, ilspDomain=None, processSteps=None)[source]

Bases: object

property coords
property ilspDomain
property normals
path2userProcess(pathSteps)[source]
property processSteps
property stepIndex
update()[source]

liatool.utils module

liatool.utils.addObjectToCollection(object, collectionName)[source]
liatool.utils.completeDeselect()[source]
liatool.utils.copyProperties(source, target)[source]
liatool.utils.domainsExists()[source]
liatool.utils.getDomainByDomainObj(domainObject)[source]
liatool.utils.initDomainsState()[source]
liatool.utils.selectOnlyObj(obj)[source]
liatool.utils.switchToMaterialMode()[source]
liatool.utils.updateDomainsState()[source]

liatool.versions module

liatool.versions.checkUpdates(local=[], remote=[])[source]
liatool.versions.downloadApp(branch, version)[source]
liatool.versions.readToken()[source]
liatool.versions.remoteVersions()[source]
liatool.versions.testToken(token)[source]

Module contents

Top-level package for LIATool.