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

Function draw_superquadric_works

src/surface_geometry.rs:532–547  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

530
531 #[test]
532 fn draw_superquadric_works() {
533 let mut surf = Surface::new();
534 surf.draw_superquadric(
535 &[0.0, 0.0, 0.0],
536 &[1.0, 1.0, 1.0],
537 &[2.0, 2.0, 2.0],
538 0.0,
539 180.0,
540 0.0,
541 180.0,
542 2,
543 2,
544 )
545 .unwrap();
546 assert!(surf.get_buffer().len() > 0);
547 }
548
549 #[test]
550 fn draw_sphere_fails_on_wrong_input() {

Callers

nothing calls this directly

Calls 1

draw_superquadricMethod · 0.80

Tested by

no test coverage detected