diff --git a/crates/kernel/src/body.rs b/crates/kernel/src/body.rs index 233fb281e..4d3803cda 100644 --- a/crates/kernel/src/body.rs +++ b/crates/kernel/src/body.rs @@ -358,10 +358,11 @@ fn same_shared(a: &Option>, b: &Option Result { record.validate().map_err(|e| KernelError::Invalid(e.to_string()))?; - if record.faces.is_empty() || record.material_regions().is_empty() { + if record.faces.is_empty() { return Err(KernelError::Failed("empty result".into())); } Ok(record) @@ -405,8 +406,9 @@ impl Body { } } - /// The solid body of a schema 4 record: checked for structure (budgets, references, loops, - /// regions, canonical order) and for bounding material. Its faces face as the record says. + /// The body of a schema 4 record (a solid, or a surface body of open shells): checked for + /// structure (budgets, references, loops, regions, canonical order). Its faces face as the + /// record says. pub(crate) fn from_record(record: Brep) -> Result { Ok(Body::bare(solid_record(record)?, None, None)) }