mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Prepare to support curved curves
This commit is contained in:
parent
700b93188b
commit
e9c6ee189b
@ -3,7 +3,7 @@ use std::{
|
||||
mem,
|
||||
};
|
||||
|
||||
use fj_interop::{Color, MeshTriangle, TriMesh};
|
||||
use fj_interop::{Color, MeshTriangle, Tolerance, TriMesh};
|
||||
use fj_math::{Point, Triangle};
|
||||
use geo::{Contains, Coord, LineString, Polygon};
|
||||
use spade::Triangulation;
|
||||
@ -13,7 +13,7 @@ use crate::topology::{
|
||||
surface::Surface,
|
||||
};
|
||||
|
||||
pub fn triangulate(face: &Face) -> TriMesh {
|
||||
pub fn triangulate(face: &Face, _: impl Into<Tolerance>) -> TriMesh {
|
||||
let mut points_from_half_edges = Vec::new();
|
||||
half_edges_to_points(face, &mut points_from_half_edges);
|
||||
|
||||
|
@ -41,8 +41,8 @@ impl Face {
|
||||
}
|
||||
|
||||
impl ToTriMesh for Face {
|
||||
fn to_tri_mesh(&self, _: impl Into<Tolerance>) -> TriMesh {
|
||||
triangulate(self)
|
||||
fn to_tri_mesh(&self, tolerance: impl Into<Tolerance>) -> TriMesh {
|
||||
triangulate(self, tolerance)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user