mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Simplify
This commit is contained in:
parent
c3ac8defcd
commit
0d0d5b3183
@ -1,10 +1,8 @@
|
||||
use std::{collections::BTreeMap, fs::File};
|
||||
|
||||
use crate::object::Object;
|
||||
|
||||
pub fn export(op: &dyn Object) -> anyhow::Result<()> {
|
||||
let tri_mesh = op.tri_mesh();
|
||||
use crate::geometry::TriMesh;
|
||||
|
||||
pub fn export(tri_mesh: &TriMesh) -> anyhow::Result<()> {
|
||||
let mut indices_by_vertex = BTreeMap::new();
|
||||
|
||||
let mut points = Vec::new();
|
||||
|
@ -16,7 +16,7 @@ mod topology;
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let model = model::model();
|
||||
|
||||
export::export(&model)?;
|
||||
export::export(&model.tri_mesh())?;
|
||||
app::run(model.tri_mesh())?;
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user