SourceForge has been redesigned. Learn more.
Close

#45 Subdivision crashes when vertex order is wrong

open
nobody
None
5
2005-05-31
2005-05-31
T. Kim
No

I'm a new user, so there may be a more verbose error
generated somewhere that I don't know about.

Pixie works fine if I create a simple Catmull-Clark cube:

RtInt nfaces = 6;
RtInt nvertices[] = {4,4,4,4,4,4};
har type[] = "catmull-clark";
RtInt ntags = 1;
RtToken tags[] = {"interpolateboundary"};
RtInt nargs[] = {0,0};
RtInt intargs[] = {0};
RtFloat floatargs[] = {0.0};
RtPoint P[] = {
{0.25, 0.25, 0}, {0.75, 0.25, 0},
{0.75, 0.75, 0}, {0.25, 0.75, 0},
{0.25, 0.25, 0.5}, {0.75, 0.25, 0.5},
{0.75, 0.75, 0.5}, {0.25, 0.75, 0.5},
{0.25, 0, 0}, {0.75, 0, 0},
{1, 0.25, 0}, {1, 0.75, 0},
{0.75, 1, 0}, {0.25, 1, 0},
{0, 0.75, 0}, {0, 0.25, 0}
};
RtInt vertices[] = {
5,1,0,4, 7,4,0,3,
7,6,5,4, 2,1,5,6,
2,6,7,3, 0,1,2,3
};
RiSubdivisionMesh(type, nfaces, nvertices,
vertices, ntags, tags, nargs, intargs,
floatargs, RI_P, P, RI_NULL);

But if I mess up the vertex order of one of the faces,
ie if I switch the order on the last face to 3,2,1,0,
Pixie bombs. The generated TIFF is also invalid. While
it's true that this input is invalid, it would be nice
if Pixie generated an error before halting.

I'm using version 1.4.1 on Windows.

Discussion


Log in to post a comment.