pub trait TriangleCountService:
Send
+ Sync
+ 'static {
// Required method
fn count_triangles(
&self,
object: &ObjectId,
) -> Result<TriangleCount, TriangleCountError>;
}Expand description
Counts the triangles of model objects’ meshes.
Required Methods§
Sourcefn count_triangles(
&self,
object: &ObjectId,
) -> Result<TriangleCount, TriangleCountError>
fn count_triangles( &self, object: &ObjectId, ) -> Result<TriangleCount, TriangleCountError>
The number of triangles in object’s mesh.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".