本文整理汇总了C++中MESH::add_property方法的典型用法代码示例。如果您正苦于以下问题:C++ MESH::add_property方法的具体用法?C++ MESH::add_property怎么用?C++ MESH::add_property使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MESH
的用法示例。
在下文中一共展示了MESH::add_property方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: myMeshIO
void DynamicSubdivisionCCBase<MESH>::copyFromBin( BinaryDataHandler &pMem,
const BitVector &whichField)
{
Inherited::copyFromBin(pMem, whichField);
if(FieldBits::NoField != (MinProjSizeFieldMask & whichField))
{
_sfMinProjSize.copyFromBin(pMem);
}
if(FieldBits::NoField != (MaxProjSizeFieldMask & whichField))
{
_sfMaxProjSize.copyFromBin(pMem);
}
if(FieldBits::NoField != (VertexClassifierFieldMask & whichField))
{
_sfVertexClassifier.copyFromBin(pMem);
}
if(FieldBits::NoField != (NormalConeApertureFieldMask & whichField))
{
_sfNormalConeAperture.copyFromBin(pMem);
}
if(FieldBits::NoField != (MinDepthFieldMask & whichField))
{
_sfMinDepth.copyFromBin(pMem);
}
if(FieldBits::NoField != (MaxDepthFieldMask & whichField))
{
_sfMaxDepth.copyFromBin(pMem);
}
if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
{
_sfBackfaceCulling.copyFromBin(pMem);
}
if(FieldBits::NoField != (MeshFieldMask & whichField))
{
// new OpenMesh object
MESH* newmesh = new MESH;
::OpenMesh::EPropHandleT<Int32> isCrease;
newmesh->add_property(isCrease,"isCrease");
//_sfMesh.copyFromBin(pMem,getMesh());
SINFO << "read Mesh" << std::endl;
OSGMeshIO<MESH> myMeshIO(*newmesh);
myMeshIO.readOpenMesh(pMem);
setMesh(newmesh);
}
#if 0
if(FieldBits::NoField != (TesselatorFieldMask & whichField))
{
_sfTesselator.copyFromBin(pMem);
}
#endif
if(FieldBits::NoField != (AutoUpdateFieldMask & whichField))
{
_sfAutoUpdate.copyFromBin(pMem);
}
}