MCPcopy Create free account
hub / github.com/cpmech/plotpy / draw_hemisphere_works

Function draw_hemisphere_works

src/surface_geometry.rs:494–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492
493 #[test]
494 fn draw_hemisphere_works() {
495 let mut surf = Surface::new();
496 surf.draw_hemisphere(&[0.0, 0.0, 0.0], 1.0, 0.0, 180.0, 2, 2, true)
497 .unwrap();
498 assert!(surf.get_buffer().len() > 0);
499 surf.draw_hemisphere(&[0.0, 0.0, 0.0], 1.0, 0.0, 180.0, 2, 2, false)
500 .unwrap();
501 assert!(surf.get_buffer().len() > 0);
502 }
503
504 #[test]
505 fn draw_superquadric_fails_on_wrong_input() {

Callers

nothing calls this directly

Calls 1

draw_hemisphereMethod · 0.80

Tested by

no test coverage detected