mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 17:15:52 +00:00
Make method name more explicit
This commit is contained in:
parent
b0d26c0dc9
commit
0b97a1a98a
@ -83,7 +83,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
let shape_processor = ShapeProcessor::new(args.tolerance)?;
|
let shape_processor = ShapeProcessor::new(args.tolerance)?;
|
||||||
|
|
||||||
if let Some(path) = args.export {
|
if let Some(path) = args.export {
|
||||||
let shape = model.load(¶meters)?;
|
let shape = model.load_once(¶meters)?;
|
||||||
let shape = shape_processor.process(&shape);
|
let shape = shape_processor.process(&shape);
|
||||||
|
|
||||||
let mut mesh_maker = MeshMaker::new();
|
let mut mesh_maker = MeshMaker::new();
|
||||||
|
@ -56,7 +56,7 @@ impl Model {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn load(
|
pub fn load_once(
|
||||||
&self,
|
&self,
|
||||||
arguments: &HashMap<String, String>,
|
arguments: &HashMap<String, String>,
|
||||||
) -> Result<fj::Shape, Error> {
|
) -> Result<fj::Shape, Error> {
|
||||||
@ -186,7 +186,7 @@ impl Watcher {
|
|||||||
pub fn receive(&self) -> Option<fj::Shape> {
|
pub fn receive(&self) -> Option<fj::Shape> {
|
||||||
match self.channel.try_recv() {
|
match self.channel.try_recv() {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
let shape = match self.model.load(&self.parameters) {
|
let shape = match self.model.load_once(&self.parameters) {
|
||||||
Ok(shape) => shape,
|
Ok(shape) => shape,
|
||||||
Err(Error::Compile) => {
|
Err(Error::Compile) => {
|
||||||
// It would be better to display an error in the UI,
|
// It would be better to display an error in the UI,
|
||||||
|
Loading…
Reference in New Issue
Block a user