ProfileParameterData: Difference between revisions

From SDK
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 12: Line 12:
'''For Example:'''
'''For Example:'''
  <nowiki>local vcarve_data = VCarveParameterData() </nowiki>
  <nowiki>local vcarve_data = VCarveParameterData() </nowiki>


==Properties==
==Properties==
Line 19: Line 18:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (double) Allowance to leave on profile when calculating toolpath
'''Returns:''' (double) Allowance to leave on profile when calculating toolpath




Line 25: Line 24:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (string) Formula for allowance to leave on profile when calculating toolpath
'''Returns:''' (string) Formula for allowance to leave on profile when calculating toolpath




Line 31: Line 30:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (double) Final cutting depth below start depth
'''Returns:''' (double) Final cutting depth below start depth




Line 37: Line 36:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (bool) True if want to create 3D ‘corner sharpening’ moves for internal corners
'''Returns:''' (bool) True if want to create 3D ‘corner sharpening’ moves for internal corners




Line 43: Line 42:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (bool) true if want to create ‘square’ external corners
'''Returns:''' (bool) true if want to create ‘square’ external corners
 


===.CutDepthFormula===
===.CutDepthFormula===
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (string) Optional formula for final cutting depth below start depth. The formula is the same as
'''Returns:''' (string) Optional formula for final cutting depth below start depth. The formula is the same as
can be entered in the CutDepth field on the normal toolpath page and has access to the same
can be entered in the CutDepth field on the normal toolpath page and has access to the same
variables (e.g “z * 0.5” to set cut depth to half the material thickness).
variables (e.g “z * 0.5” to set cut depth to half the material thickness).
Line 57: Line 55:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (integer) Cutting direction for toolpath. Valid values are as follows:
'''Returns:''' (integer) Cutting direction for toolpath. Valid values are as follows:


::ProfileParameterData.CLIMB_DIRECTION
::ProfileParameterData.CLIMB_DIRECTION


::ProfileParameterData.CONVENTIONAL_DIRECTION
::ProfileParameterData.CONVENTIONAL_DIRECTION


===.KeepStartPoints===
===.KeepStartPoints===
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (bool) If true, start points of vectors are maintained, else start points are optimised
'''Returns:''' (bool) If true, start points of vectors are maintained, else start points are optimized.




Line 72: Line 71:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (string) The name for the toolpath
'''Returns:''' (string) The name for the toolpath




Line 78: Line 77:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (integer) Side of the vector to cut on. Valid values are as follows:
'''Returns:''' (integer) Side of the vector to cut on. Valid values are as follows:


::ProfileParameterData.PROFILE_OUTSIDE
::ProfileParameterData.PROFILE_OUTSIDE
Line 85: Line 84:


::ProfileParameterData.PROFILE_ON
::ProfileParameterData.PROFILE_ON


===.ProjectToolpath===
===.ProjectToolpath===
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation
'''Returns:''' (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation
 
 


===.Name===
===.Name===
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (string) The name for the toolpath
'''Returns:''' (string) The name for the toolpath
 
 




Line 104: Line 100:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation
'''Returns:''' (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation
 


===.StartDepth===
===.StartDepth===
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (double) Start depth for toolpath below material surface
'''Returns:''' (double) Start depth for toolpath below material surface




Line 116: Line 111:
'''Interaction:''' Read and Write
'''Interaction:''' Read and Write


'''Returns:''' (string) Optional formula for start depth for toolpath below material surface. The formula is the same as can be entered in the Start Depth field on the normal toolpath page and has access to the same variables (e.g “z * 0.5” to set start depth to half the material thickness).
'''Returns:''' (string) Optional formula for start depth for toolpath below material surface. The formula is the same as can be entered in the Start Depth field on the normal toolpath page and has access to the same variables (e.g “z * 0.5” to set start depth to half the material thickness).




Line 159: Line 154:


[[File:Back.jpg|right|50px|link=Toolpaths]]
[[File:Back.jpg|right|50px|link=Toolpaths]]
==References==
==References==
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]

Latest revision as of 16:25, 1 May 2024

Back.jpg

This object is used to hold the settings for a vcarving toolpath.


Constructor

VCarveParameterData()

Create a new object ready to have its parameters set

For Example:

local vcarve_data = VCarveParameterData() 

Properties

.Allowance

Interaction: Read and Write

Returns:  (double) Allowance to leave on profile when calculating toolpath


.AllowanceFormula

Interaction: Read and Write

Returns: (string) Formula for allowance to leave on profile when calculating toolpath


.CutDepth

Interaction: Read and Write

Returns: (double) Final cutting depth below start depth


.CornerSharpen

Interaction: Read and Write

Returns: (bool) True if want to create 3D ‘corner sharpening’ moves for internal corners


.CreateSquareCorners

Interaction: Read and Write

Returns: (bool) true if want to create ‘square’ external corners

.CutDepthFormula

Interaction: Read and Write

Returns: (string) Optional formula for final cutting depth below start depth. The formula is the same as

can be entered in the CutDepth field on the normal toolpath page and has access to the same variables (e.g “z * 0.5” to set cut depth to half the material thickness).


.CutDirection

Interaction: Read and Write

Returns: (integer) Cutting direction for toolpath. Valid values are as follows:
ProfileParameterData.CLIMB_DIRECTION
ProfileParameterData.CONVENTIONAL_DIRECTION


.KeepStartPoints

Interaction: Read and Write

Returns: (bool) If true, start points of vectors are maintained, else start points are optimized.


.Name

Interaction: Read and Write

Returns: (string) The name for the toolpath


.ProfileSide

Interaction: Read and Write

Returns: (integer) Side of the vector to cut on. Valid values are as follows:
ProfileParameterData.PROFILE_OUTSIDE
ProfileParameterData.PROFILE_INSIDE
ProfileParameterData.PROFILE_ON


.ProjectToolpath

Interaction: Read and Write

Returns: (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation

.Name

Interaction: Read and Write

Returns: (string) The name for the toolpath


.ProjectToolpath

Interaction: Read and Write

Returns: (bool) If true and used with Aspire, toolpath is projected onto model surface after calculation

.StartDepth

Interaction: Read and Write

Returns: (double) Start depth for toolpath below material surface


.StartDepthFormula

Interaction: Read and Write

Returns: (string) Optional formula for start depth for toolpath below material surface. The formula is the same as can be entered in the Start Depth field on the normal toolpath page and has access to the same variables (e.g “z * 0.5” to set start depth to half the material thickness).


For Example:

   
-- Create object used to pass profile options
 local profile_data = ProfileParameterData()
 -- start depth for toolpath
 profile_data.StartDepth = start_depth

 -- cut depth for toolpath this is depth below start depth
 profile_data.CutDepth = cut_depth

 -- direction of cut - ProfileParameterData.CLIMB_DIRECTION or
 -- ProfileParameterData.CONVENTIONAL_DIRECTION
 profile_data.CutDirection = ProfileParameterData.CLIMB_DIRECTION

 -- side we machine on - ProfileParameterData.PROFILE_OUTSIDE,
 -- ProfileParameterData.PROFILE_INSIDE or ProfileParameterData.PROFILE_ON
 profile_data.ProfileSide = ProfileParameterData.PROFILE_OUTSIDE

 -- Allowance to leave on when machining
 profile_data.Allowance = 0.0

 -- true to preserve start point positions, false to reorder start points to
 -- minimise toolpath length
 profile_data.KeepStartPoints = false

 -- true if want to create 'square' external corners on toolpath
 profile_data.CreateSquareCorners = false

 -- true to perform corner sharpening on internal corners (only with v-bits)
 profile_data.CornerSharpen = false


 -- if true in Aspire, project toolpath onto composite model
 profile_data.ProjectToolpath = false



Back.jpg

References

Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information