本文整理汇总了C++中MeshPtr::Right方法的典型用法代码示例。如果您正苦于以下问题:C++ MeshPtr::Right方法的具体用法?C++ MeshPtr::Right怎么用?C++ MeshPtr::Right使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshPtr
的用法示例。
在下文中一共展示了MeshPtr::Right方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateDiagnostics
void Manipulator::UpdateDiagnostics(const MeshPtr selectedMesh)
{
const float length = 5.0f;
const auto position = selectedMesh->Position();
m_engine->diagnostic()->UpdateText(Diagnostic::MESH, "SelectedTool",
Diagnostic::WHITE, GetDescription(m_selectedTool));
m_engine->diagnostic()->UpdateText(Diagnostic::MESH, "SelectedAxis",
Diagnostic::WHITE, GetDescription(m_selectedAxis));
m_engine->diagnostic()->UpdateText(Diagnostic::MESH, "AnimationPoints",
Diagnostic::WHITE, StringCast(selectedMesh->GetAnimationPoints().size()));
m_engine->diagnostic()->UpdateLine(Diagnostic::MESH, "MeshXaxis",
Diagnostic::YELLOW, position, position + (selectedMesh->Right() * length));
m_engine->diagnostic()->UpdateLine(Diagnostic::MESH, "MeshYaxis",
Diagnostic::RED, position, position + (selectedMesh->Up() * length));
m_engine->diagnostic()->UpdateLine(Diagnostic::MESH, "MeshZaxis",
Diagnostic::GREEN, position, position + (selectedMesh->Forward() * length));
}