-
Notifications
You must be signed in to change notification settings - Fork 65
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
base: master
Are you sure you want to change the base?
Conversation
…sing performActionBasedOnOrientationSystem
…side, comment out some legacy code
|
||
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); | ||
} |
There was a problem hiding this comment.
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"; } |
There was a problem hiding this comment.
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
…into yas_mesh_loaders
…ation in IAssetManager
…into yas_mesh_loaders
No description provided.