本文整理汇总了C++中GroupPtr::children方法的典型用法代码示例。如果您正苦于以下问题:C++ GroupPtr::children方法的具体用法?C++ GroupPtr::children怎么用?C++ GroupPtr::children使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GroupPtr
的用法示例。
在下文中一共展示了GroupPtr::children方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: doOperation
ObjectPtr CurveExtrudeOp::doOperation( const CompoundObject * operands )
{
CurvesPrimitive * curves = m_curvesParameter->getTypedValue<CurvesPrimitive>();
assert( curves );
assert( curves->arePrimitiveVariablesValid() );
GroupPtr group = new Group();
const IntVectorData * verticesPerCurve = curves->verticesPerCurve();
assert( verticesPerCurve );
unsigned numCurves = verticesPerCurve->readable().size();
unsigned vertexOffset = 0;
unsigned varyingOffset = 0;
for ( unsigned curveIndex = 0; curveIndex < numCurves; curveIndex++ )
{
int numVertices = curves->variableSize( PrimitiveVariable::Vertex, curveIndex );
PatchMeshPrimitivePtr patchMesh = buildPatchMesh( curves, curveIndex, vertexOffset, varyingOffset );
assert( patchMesh );
group->addChild( patchMesh );
vertexOffset += numVertices;
varyingOffset += curves->variableSize( PrimitiveVariable::Varying, curveIndex );
}
assert( group->children().size() == numCurves );
return group;
}