Skip to content

Make STL loader/writer and PLY writer work again #901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

YasInvolved
Copy link
Contributor

No description provided.

Comment on lines 39 to +44

virtual void initialize() override;

const std::string_view getPipelineCacheKey(bool withColorAttribute) { return withColorAttribute ? "nbl/builtin/pipeline/loader/STL/color_attribute" : "nbl/builtin/pipeline/loader/STL/no_color_attribute"; }

// skips to the first non-space character available
void goNextWord(SContext* context) const;
// returns the next word

const std::string& getNextToken(SContext* context, std::string& token) const;
// skip to next printable character after the first line break
void goNextLine(SContext* context) const;
//! Read 3d vector of floats
void getNextVector(SContext* context, core::vectorSIMDf& vec, bool binary) const;

asset::IAssetManager* m_assetMgr;
template <typename aType>
static inline void performActionBasedOnOrientationSystem(aType& varToHandle, void (*performOnCertainOrientation)(aType& varToHandle))
{
performOnCertainOrientation(varToHandle);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided these functions make no sense for geometries (as an appropriate geometry transform in a collection can be used instead of changing the mesh data), see git blame in PLY loader

uint32_t topHierarchyLevel;
IAssetLoader::IAssetLoaderOverride* loaderOverride;
private:
const std::string_view getPipelineCacheKey(bool withColorAttribute) { return withColorAttribute ? "nbl/builtin/pipeline/loader/STL/color_attribute" : "nbl/builtin/pipeline/loader/STL/no_color_attribute"; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything to do with a pipeline needs to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants