Congratulations! You are a March Madness BONUS BUYER!

Enjoy 10% OFF* ALL PURCHASES STOREWIDE or enjoy 30% OFF items with a SKU number lower than 16000 & 30% OFF items from Runtime DNA.

Get an EXTRA 30% OFF** on Featured Horror Animations and Poses

Get an EXTRA 50% OFF** on Featured Horror Places and Things

Offer valid for intended recipient only
* 10% discount DOES apply to Gift Cards and Memberships. **Items must be in cart simultaneously for discount to apply.
[ collapse ]


samurlesamurle Posts: 92
edited December 1969 in Daz SDK Developer Discussion

I'm trying to update some old 3.x code to 4.5, and I see that DzPolyMesh has been replaced with
DzFacetMesh. And it looks like DzFacet is limited to triangles and quads.

Are polys supported anymore? If so, where does that come from now?

 // Old 3.x code
 int numTris  = ((DzPolyMesh*)geom)->getNumTris();
 int numQuads = ((DzPolyMesh*)geom)->getNumQuads();
 int numPolys = ((DzPolyMesh*)geom)->getNumPolys();

 // 4.5 code
 int numTris=0;
 int numQuads=0;
 int numPolys=0; // ??

 DzFacetMesh *dzMesh = qobject_cast(geom);
 if(dzMesh) {
    for(int i=0; i < dzMesh->getNumFacets(); i++) {
       DzFacet face = dzMesh->getFacet(i);
       if(face.isTri()) numTris++;
       if(face.isQuad()) numQuads++;

This is for the C++ SDK.


  • rbtwhizrbtwhiz Posts: 1,136
    edited December 1969

    ngons (polygons with > 4 sides) are no longer supported. Geometry importers are responsible for handling ngons. Those provided by DAZ 3D should already triangulate any ngons they encounter during import.


  • samurlesamurle Posts: 92
    edited December 1969

    Thanks. Got it working. :)

Sign In or Register to comment.