本文整理汇总了C++中GeoPnt3fPropertyRecPtr::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ GeoPnt3fPropertyRecPtr::push_back方法的具体用法?C++ GeoPnt3fPropertyRecPtr::push_back怎么用?C++ GeoPnt3fPropertyRecPtr::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeoPnt3fPropertyRecPtr
的用法示例。
在下文中一共展示了GeoPnt3fPropertyRecPtr::push_back方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: buildGeometry
void VRWorkpieceElement::buildGeometry(GeoPnt3fPropertyRecPtr positions,
GeoVec3fPropertyRecPtr normals,
GeoUInt32PropertyRecPtr indices,
uint32_t& index) {
Vec3d planeDistance = this->size / 2.0f;
// for each dimension
for (int sgnIndex = 0; sgnIndex < 2; sgnIndex++) {
for (int dimension = 0; dimension < 3; dimension++) {
Vec3d planeNormal = planeOffsetMasks[0][dimension];
Vec3d planeOffset = mulVec3f(planeOffsetMasks[sgnIndex][dimension], planeDistance);
Vec3d planeMid = this->offset + planeOffset;
for (int vertexNum = 0; vertexNum < 4; vertexNum++) {
Vec3d vertexOffsetMask = vertexOffsetMasks[sgnIndex][dimension][vertexNum];
Vec3d vertexOffset = mulVec3f(planeDistance, vertexOffsetMask);
Pnt3d vertexPosition = planeMid + vertexOffset;
positions->push_back(vertexPosition);
normals->push_back(planeNormal);
indices->push_back(index);
index++;
}
}
}
}