My problem was that i was writing the hatch edge using degrees when im supposed to use radians.
DL_HatchEdgeData eData(0.0, 0.0, 100.0, 0.0, M_PI*2, true);
that single line solved my problem, than you very much Andrew.
Search found 11 matches
- Fri Nov 15, 2013 11:51 pm
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59509
- Fri Nov 15, 2013 12:22 am
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59509
Re: dxf->writeHatch, but how ?
Maybe im just confused about how im supposed to hatch things....
- Fri Nov 15, 2013 12:17 am
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59509
Re: dxf->writeHatch, but how ?
My code is this: DxfExporter exportador("testingWriting.dxf"); exportador.addEntity(new DxfCircle(0,0,0,100,DL_Attributes())); DL_Attributes generalAttrib = DL_Attributes("0",2,16776960, -1, "BYLAYER"); exportador.addEntity((new DxfHatch(1,true,1,0,"SOLID",generalAttrib))); exportador.addEntity(new ...
- Thu Nov 14, 2013 12:56 am
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59509
Re: dxf->writeHatch, but how ?
Anyone?
- Thu Nov 07, 2013 11:14 pm
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59509
Re: dxf->writeHatch, but how ?
Im having some troubles in writing a solid arc hatch, i wrote a single hatch, with a single loop with a single edge all of em with the same attributes and it just doesnt work, any advice?
- Fri Oct 25, 2013 8:42 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Some questions about dxflib.
- Replies: 1
- Views: 22410
Some questions about dxflib.
I need someone to answere me this questions.
Is dxflib still in develop?
when was the first dxflib version released?
why was dxflib created? was a colateral project born from QCAD?
Is dxflib still in develop?
when was the first dxflib version released?
why was dxflib created? was a colateral project born from QCAD?
- Tue Oct 15, 2013 11:50 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Draw a BezierCurve in dxf
- Replies: 11
- Views: 54024
Re: Draw a BezierCurve in dxf
I actually run into a new and even worse problem, Bezier curve definition says that Bezier curves k curve degree must always be equal to n control points... so if i want to draw a Bezier spline with 4+ control points im.... lost?
n= k = 4, so its not dxflib/QCAD compatible?
n= k = 4, so its not dxflib/QCAD compatible?
- Tue Oct 15, 2013 10:57 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Draw a BezierCurve in dxf
- Replies: 11
- Views: 54024
Re: Draw a BezierCurve in dxf
i did, and you've just saved me probably another 3 days of research about splines in just a min, i really thank you for your time and your wonderfull library, greeting from méxico.
- Tue Oct 15, 2013 10:16 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Draw a BezierCurve in dxf
- Replies: 11
- Views: 54024
Re: Draw a BezierCurve in dxf
Something wierd is happening to me now, in the bezier curve definition says that splineDegree=nControlPoints, but if i try to draw any spline with degree higher that 3 doesnt work. im testing my writing program using QCAD by the way, it has something to do with QCAD methods? im using the same formul...
- Mon Oct 14, 2013 10:42 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Draw a BezierCurve in dxf
- Replies: 11
- Views: 54024
Re: Draw a BezierCurve in dxf
Hello again Andrew, in your previous code you wrote this little formula:
kd = DL_KnotData(1.0/(numKnots-2*k+1) * (i-k));
to calculate the knot value in the mid section of the knot array, im reading the document you posted for me but i cant figure out how to assign that "constant", any advise?
kd = DL_KnotData(1.0/(numKnots-2*k+1) * (i-k));
to calculate the knot value in the mid section of the knot array, im reading the document you posted for me but i cant figure out how to assign that "constant", any advise?
- Wed Oct 09, 2013 12:10 am
- Forum: dxflib 'How Do I' Questions
- Topic: Draw a BezierCurve in dxf
- Replies: 11
- Views: 54024
Re: Draw a BezierCurve in dxf
// write spline entity dxf.writeSpline(writer, DL_SplineData(degreeOfSpline, numKnots, numCtrl, flags), attributes); // write spline knots (example, might vary in your case): int k = degreeOfSpline +1; DL_KnotData kd; for (int i=1; i<=numKnots; i++) { if (i<=k) { kd = DL_KnotData(0.0); } else if (i...