Skip to content

Hull of multmatrix #2

@KeithSloan

Description

@KeithSloan

The following file fails

hull() {
	multmatrix([[0, 0, 1, 0], [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1]]) {
		multmatrix([[1, 0, 0, -75], [0, 1, 0, 26.5], [0, 0, 1, -31], [0, 0, 0, 1]]) {
			group() {
				multmatrix([[1, 0, 0, -23], [0, 1, 0, -3.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
					cube(size = [46, 7, 1], center = false);
				}
			}
		}
		multmatrix([[1, 0, 0, -60], [0, 1, 0, 21.5], [0, 0, 1, 993], [0, 0, 0, 1]]) {
			group() {
				multmatrix([[1, 0, 0, -18], [0, 1, 0, -3.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
					cube(size = [36, 7, 1], center = false);
				}
			}
		}
	}
}

The problem is that the multmatrix performs a fuse if it contains more than one object, the result in the above example is that
hull request only finds one object on the stack.

Look at changing multmatrix which find more than one object not to fuse before application but to apply the multmatrix to each item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions