Skip to content

issue calling quadwild from another folder #23

@otaolafranc

Description

@otaolafranc

I wanted to use quadwild from wherever in my PC by creating a function in my bashrc. for this, I created the following function:

quadWildMeshing() { 
local inp1="$1" ;  
meshio convert ./"$inp1" ./mesh.obj ;
 /home/franco/Programs/quadwild-bimdf/build/Build/bin/quadwild ./mesh.obj  2 /home/franco/Programs/quadwild-bimdf/config/prep_config/basic_setup_Mechanical.txt ;
 /home/franco/Programs/quadwild-bimdf/build/Build/bin/quad_from_patches ./mesh_rem_p0.obj 123 /home/franco/Programs/quadwild-bimdf/config/main_config/flow_noalign_lemon.txt;
 }

the issue is that the there are some hardcoded paths inside the code. for eg.

cd $HOME/Downloads/newFolder #where Mesh_1.stl is present
quadWildMeshing Mesh_1.stl

I get an error fatal error: Could not open N14QuadRetopology10FlowConfigE config file 'config/main_config/flow_virtual_simple.json' here is the complete output
output.txt

if now I do:

cd  /home/franco/Programs/quadwild-bimdf
mkdir test
cp $HOME/Downloads/newFolder/Mesh_1.stl ./test/Mesh_1.stl
quadWildMeshing ./test/Mesh_1.stl

quadWild will work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions