aole / ClothSimulator

Cloth Simulator
MIT License
28 stars 8 forks source link

where is "FlagPole.obj" file? #5

Open asmwarrior opened 1 year ago

asmwarrior commented 1 year ago

Hi, nice project. I have built your project under Windows, and by using codeblocks+msys2. See: asmwarrior/ClothSimulator: Cloth Simulator

I see such code:

void Controller::OnMenuFileAddObject(wxFrame* frame)
{
    wxLogDebug("OnMenuFileAddObject");
    wxTextFile objfile("Objects/FlagPole.obj");
    bool success = objfile.Open();
    wxLogDebug("opened: %i", success);

    for (wxString str = objfile.GetFirstLine(); !objfile.Eof(); str = objfile.GetNextLine())
    {
        if (str.StartsWith("o ")) { // new object
            wxString name = str.SubString(2, 0);
            wxLogDebug(name);
        }
    }

    objfile.Close();
}

I see this lines in the code, but where is "FlagPole.obj" file?

aole commented 1 year ago

Hi,

thanks!

It's been a while since I worked on this. I may have used the flagpole.obj (some simple object made in blender) as a test. This part of the code doesn't look complete as well. You might as well do your thing.