McStasMcXtrace / mccode-antlr

McCode grammar implemented with ANTLR4
1 stars 0 forks source link

`Instr.mcpl_split` puts the inserted `MCPL_input` component at the origin #37

Closed g5t closed 11 months ago

g5t commented 11 months ago

Similar to #32, when Instr.mcpl_split uses Instr.split to break an instrument in two it must use the same coordinate system for the first and second instruments in case any component instances in the second instrument have absolute positions.

As long as the source MCPL_input component position is set to the same absolute position as the MCPL_output component in the first part of the instrument, the relative positioning of all components will stay fixed.