forked from StudioInfinity/dyna3
refactor: leave octagon constraints unset so they can be filled in manually
This commit is contained in:
parent
3afdd3a36b
commit
0949dc5e8a
1 changed files with 3 additions and 3 deletions
|
@ -931,21 +931,21 @@ fn load_554aug2(assembly: &Assembly) {
|
||||||
oct_verts.push(pt_rc.clone());
|
oct_verts.push(pt_rc.clone());
|
||||||
let incidence = InversiveDistanceRegulator::new(
|
let incidence = InversiveDistanceRegulator::new(
|
||||||
[face_rc.clone(), pt_rc.clone()]);
|
[face_rc.clone(), pt_rc.clone()]);
|
||||||
incidence.set_to(0.0);
|
// incidence.set_to(0.0);
|
||||||
assembly.insert_regulator(Rc::new(incidence));
|
assembly.insert_regulator(Rc::new(incidence));
|
||||||
// And regulate the length to the other vertices of the octagon
|
// And regulate the length to the other vertices of the octagon
|
||||||
for offset in 1..OCT_N_DIAG {
|
for offset in 1..OCT_N_DIAG {
|
||||||
if offset <= oct_index {
|
if offset <= oct_index {
|
||||||
let dist = InversiveDistanceRegulator::new(
|
let dist = InversiveDistanceRegulator::new(
|
||||||
[oct_verts[oct_index - offset].clone(), pt_rc.clone()]);
|
[oct_verts[oct_index - offset].clone(), pt_rc.clone()]);
|
||||||
dist.set_to(OCT_DIST[offset]);
|
if offset == 1 { dist.set_to(OCT_DIST[offset]); }
|
||||||
assembly.insert_regulator(Rc::new(dist));
|
assembly.insert_regulator(Rc::new(dist));
|
||||||
}
|
}
|
||||||
if offset < OCT_LONG && oct_index + offset >= OCT_N {
|
if offset < OCT_LONG && oct_index + offset >= OCT_N {
|
||||||
let forward = oct_index + offset - OCT_N;
|
let forward = oct_index + offset - OCT_N;
|
||||||
let dist = InversiveDistanceRegulator::new(
|
let dist = InversiveDistanceRegulator::new(
|
||||||
[oct_verts[forward].clone(), pt_rc.clone()]);
|
[oct_verts[forward].clone(), pt_rc.clone()]);
|
||||||
dist.set_to(OCT_DIST[offset]);
|
if offset == 1 { dist.set_to(OCT_DIST[offset]); }
|
||||||
assembly.insert_regulator(Rc::new(dist));
|
assembly.insert_regulator(Rc::new(dist));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue