Visual bug in extruder, possibly coming from triangulator
Closed this issue · 2 comments
GoogleCodeExporter commented
This code:
Procedural::Path p =
Procedural::CatmullRomSpline3().setNumSeg(8).addPoint(0,0,0).addPoint(0,0,10).ad
dPoint(10,0,10).addPoint(20,0,0).realizePath().scale(2);
Procedural::Shape s =
Procedural::Shape().addPoint(-1.2f,.2f).addPoint(-1.f,.2f).addPoint(-.9f,.1f).ad
dPoint(.9f,.1f).addPoint(1.f,.2f).addPoint(1.2f,.2f).scale(2).setOutSide(Procedu
ral::SIDE_LEFT);
Procedural::Track textureTrack =
Procedural::Track(Procedural::Track::AM_POINT).addKeyFrame(0,0).addKeyFrame(2,.2
f).addKeyFrame(3,.8f).addKeyFrame(5,1);
Procedural::Extruder().setExtrusionPath(&p).setShapeToExtrude(&s).setShapeTextur
eTrack(&textureTrack).setUTile(20.f).realizeMesh("extrudedMesh");
putMesh3("extrudedMesh");
produces a mesh with a connection between the beginning and the end of the road.
Original issue reported on code.google.com by michael.broutin@gmail.com
on 12 May 2012 at 6:54
GoogleCodeExporter commented
Analysed the code : the problem is that
1) Extruder add caps even when shape isn't closed
2) Triangulator tries to triangulate something that isn't closed
Original comment by michael.broutin@gmail.com
on 27 May 2012 at 7:43
GoogleCodeExporter commented
Original comment by michael.broutin@gmail.com
on 27 May 2012 at 8:08
- Changed state: Fixed