Loadfeat: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Noahj (talk | contribs)
No edit summary
Noahj (talk | contribs)
No edit summary
Line 23: Line 23:


(Note the scaling in the "before" example above: this double scaling is unacceptable and would result in the post being blacklisted. The coordinate value is scaled internally.)
(Note the scaling in the "before" example above: this double scaling is unacceptable and would result in the post being blacklisted. The coordinate value is scaled internally.)
==LoadFeat#==
{{RemovedCommands|date=9/28/2009|build=10.8.0(Galaxy)}}
{{Description|description=Takes the results of the next number or math command as a feature index and temporarily loads that feature as the current feature.}}


{{Stats|id=401|type=Command|class=All Machines|scope=|version=N/A}}
{{Stats|id=401|type=Command|class=All Machines|scope=|version=N/A}}
[[Category:Output Control]]

Revision as of 17:30, 17 September 2015

LoadFeat X# Y# Z#

Deprecated Command

This command has deprecated and should not be used in new posts and removed from existing posts when found (if time is available). The command will continue to function in order to support older posts. Removal may eventually happen at a later date if a deprecated command is unused enough.


Description

This command creates and loads a single feature, then sets the specified X,Y,Z coordinates as the end point of that feature.

Also see LoadFeat3D.


Replacement Commands

This command should be replaced with alteranate code. Posts have access to the current position using the CurrentX/Y/Z# family of commands which can be used to create a conditional which tests for the appropriate move. For instance:

LoadFeat Num#('0') Num#('0') MUL# ClearancePlane3# NumSc#('1') { Created and loaded feature: X=0 Y=0 Z=ClearancePlane3#.}
IF ZMove? {Tests to see if we are at the location entered in Loadfeat above, or if we need to move this axis}
 doZL doZCP3 Etc
END

Can be replaced by:

IF NotEqual? CurrentZ# ClearancePlane3#
 doZL doZCP3 Etc
END

(Note the scaling in the "before" example above: this double scaling is unacceptable and would result in the post being blacklisted. The coordinate value is scaled internally.)

LoadFeat#

Removed Command

This command has Removed as of 9/28/2009 in Build 10.8.0(Galaxy).


Description

Takes the results of the next number or math command as a feature index and temporarily loads that feature as the current feature.


Stats

ID 401
Type Command
Class All Machines
Min Version N/A