Prepare to support curved curves

This commit is contained in:
Hanno Braun 2025-04-16 10:27:30 +02:00
parent 700b93188b
commit e9c6ee189b
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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)
}
}