Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (123)
Tags (30)
master
kimkulling/use_float_for_material_parameters_issue-4685
kimkulling/introduce-fallthroughs_issue-4654
kimkulling/parallel-github-action
kimkulling/add-mingw
kimkulling/create_skeleton_data_issue_4015
kimkulling/add_code_alert
kimkulling/remove_deprecated_readme_issue4505
kimkulling-lwo-enum-validation_issue4236
kimkulling-issue4358
kimkulling-preparation_v5.2.0
update_copyrights
kimkulling-prepare_v5.1.6
kimkulling-fix_lwo_leak_issue4231
kimkulling-enable_language_support_issue4257-1
kimkulling-enable_language_support_issue4257
kimkulling-fix_direct_leak_issue4231
kimkulling-fix_division_by_zero_issue4235-1
kimkulling-fix_division_by_zero_issue4235
kimkulling-remove_deprecated_data
v5.2.5
v5.2.4
v5.2.3
v5.2.2
v5.2.0
v5.2.1
5.2.0
v5.1.6
v5.1.5
v5.1.4
v5.1.3
v5.1.2
v5.1.1
v5.1.0
v5.1.0.rc1
v5.0.1
v5.0.0
v.5.0.0.rc2
v.5.0.0.rc1
v4.1.0
master
Branches (123)
Tags (30)
master
kimkulling/use_float_for_material_parameters_issue-4685
kimkulling/introduce-fallthroughs_issue-4654
kimkulling/parallel-github-action
kimkulling/add-mingw
kimkulling/create_skeleton_data_issue_4015
kimkulling/add_code_alert
kimkulling/remove_deprecated_readme_issue4505
kimkulling-lwo-enum-validation_issue4236
kimkulling-issue4358
kimkulling-preparation_v5.2.0
update_copyrights
kimkulling-prepare_v5.1.6
kimkulling-fix_lwo_leak_issue4231
kimkulling-enable_language_support_issue4257-1
kimkulling-enable_language_support_issue4257
kimkulling-fix_direct_leak_issue4231
kimkulling-fix_division_by_zero_issue4235-1
kimkulling-fix_division_by_zero_issue4235
kimkulling-remove_deprecated_data
v5.2.5
v5.2.4
v5.2.3
v5.2.2
v5.2.0
v5.2.1
5.2.0
v5.1.6
v5.1.5
v5.1.4
v5.1.3
v5.1.2
v5.1.1
v5.1.0
v5.1.0.rc1
v5.0.1
v5.0.0
v.5.0.0.rc2
v.5.0.0.rc1
v4.1.0
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (123)
Tags (30)
master
kimkulling/use_float_for_material_parameters_issue-4685
kimkulling/introduce-fallthroughs_issue-4654
kimkulling/parallel-github-action
kimkulling/add-mingw
kimkulling/create_skeleton_data_issue_4015
kimkulling/add_code_alert
kimkulling/remove_deprecated_readme_issue4505
kimkulling-lwo-enum-validation_issue4236
kimkulling-issue4358
kimkulling-preparation_v5.2.0
update_copyrights
kimkulling-prepare_v5.1.6
kimkulling-fix_lwo_leak_issue4231
kimkulling-enable_language_support_issue4257-1
kimkulling-enable_language_support_issue4257
kimkulling-fix_direct_leak_issue4231
kimkulling-fix_division_by_zero_issue4235-1
kimkulling-fix_division_by_zero_issue4235
kimkulling-remove_deprecated_data
v5.2.5
v5.2.4
v5.2.3
v5.2.2
v5.2.0
v5.2.1
5.2.0
v5.1.6
v5.1.5
v5.1.4
v5.1.3
v5.1.2
v5.1.1
v5.1.0
v5.1.0.rc1
v5.0.1
v5.0.0
v.5.0.0.rc2
v.5.0.0.rc1
v4.1.0
assimp
/
code
/
Common
/
BaseProcess.cpp
assimp
/
code
/
Common
/
BaseProcess.cpp
BaseProcess.cpp 3.67 KB
Copy Edit Raw Blame History
Aaron Gokaslan authored 2022年09月01日 23:37 +08:00 . Add a handful of missing fixes
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2022, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the assimp team, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the assimp team.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
/** @file Implementation of BaseProcess */
#include "BaseProcess.h"
#include "Importer.h"
#include <assimp/BaseImporter.h>
#include <assimp/scene.h>
#include <assimp/DefaultLogger.hpp>
using namespace Assimp;
// ------------------------------------------------------------------------------------------------
// Constructor to be privately used by Importer
BaseProcess::BaseProcess() AI_NO_EXCEPT
: shared(),
progress() {
// empty
}
// ------------------------------------------------------------------------------------------------
// Destructor, private as well
BaseProcess::~BaseProcess() = default;
// ------------------------------------------------------------------------------------------------
void BaseProcess::ExecuteOnScene(Importer *pImp) {
ai_assert( nullptr != pImp );
if (pImp == nullptr) {
return;
}
ai_assert(nullptr != pImp->Pimpl()->mScene);
if (pImp->Pimpl()->mScene == nullptr) {
return;
}
progress = pImp->GetProgressHandler();
ai_assert(nullptr != progress);
if (progress == nullptr) {
return;
}
SetupProperties(pImp);
// catch exceptions thrown inside the PostProcess-Step
try {
Execute(pImp->Pimpl()->mScene);
} catch (const std::exception &err) {
// extract error description
pImp->Pimpl()->mErrorString = err.what();
ASSIMP_LOG_ERROR(pImp->Pimpl()->mErrorString);
// and kill the partially imported data
delete pImp->Pimpl()->mScene;
pImp->Pimpl()->mScene = nullptr;
}
}
// ------------------------------------------------------------------------------------------------
void BaseProcess::SetupProperties(const Importer * /*pImp*/) {
// the default implementation does nothing
}
// ------------------------------------------------------------------------------------------------
bool BaseProcess::RequireVerboseFormat() const {
return true;
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

No description
No labels
BSD-3-Clause
Use BSD-3-Clause
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ly-code/assimp.git
git@gitee.com:ly-code/assimp.git
ly-code
assimp
assimp
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /