use of org.concord.energy3d.undo.MakeGableCommand in project energy3d by concord-consortium.
the class Roof method setGable.
public void setGable(final int roofPartIndex, final boolean isGable, final UndoManager undoManager) {
final ArrayList<ReadOnlyVector3> roofPartMeshUpperPoints = new ArrayList<ReadOnlyVector3>();
final Wall wall = findGableWall(roofPartIndex, roofPartMeshUpperPoints);
if (wall != null) {
if (undoManager != null) {
undoManager.addEdit(new MakeGableCommand(this, wall, roofPartMeshUpperPoints));
}
setGable(wall, isGable, true, roofPartMeshUpperPoints);
}
}
Aggregations