Move doc comment

This commit is contained in:
Hanno Braun 2025-01-31 21:00:17 +01:00
parent e181447a1a
commit 379d414687
2 changed files with 11 additions and 11 deletions

View File

@ -17,17 +17,6 @@ impl Solid {
} }
} }
/// Sweep a face along a path, creating a solid
///
/// ## Implementation Note
///
/// This method has very particular (and undocumented) requirements about
/// the orientation of the two faces relative to each other, and will
/// happily generate invalid geometry, if those undocumented requirements
/// aren't met.
///
/// It should be seen as more of a placeholder for a real implementation of
/// this operation.
pub fn sweep_from( pub fn sweep_from(
origin: Handle<Face>, origin: Handle<Face>,
path: impl Into<Vector<3>>, path: impl Into<Vector<3>>,

View File

@ -7,6 +7,17 @@ use crate::{
use super::{Face, Solid, Vertex}; use super::{Face, Solid, Vertex};
pub trait SweepExt { pub trait SweepExt {
/// Sweep a face along a path, creating a solid
///
/// ## Implementation Note
///
/// This method has very particular (and undocumented) requirements about
/// the orientation of the two faces relative to each other, and will
/// happily generate invalid geometry, if those undocumented requirements
/// aren't met.
///
/// It should be seen as more of a placeholder for a real implementation of
/// this operation.
fn sweep( fn sweep(
self, self,
path: impl Into<Vector<3>>, path: impl Into<Vector<3>>,