Make measurements also be 3d

This commit is contained in:
2020-09-18 17:11:05 -07:00
parent 7029c8bcfa
commit 8a70276c78
4 changed files with 46 additions and 7 deletions

View File

@@ -106,11 +106,11 @@ impl<'a> RenderSteps<'a> {
}
}
fn render_e_field(&mut self) {
self.render_vector_field(Rgb([0xff, 0xff, 0xff]), 100.0, |cell| cell.e());
self.render_vector_field(Rgb([0xff, 0xff, 0xff]), 100.0, |cell| cell.e().xy());
// current
self.render_vector_field(Rgb([0x00, 0xa0, 0x30]), 1.0e-12, |cell| {
//if cell.mat().conductivity() >= 1.0e3 {
cell.e()*cell.mat().conductivity()
cell.e().xy()*cell.mat().conductivity()
//} else {
// Default::default()
//}