QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#156 - Isometric Projection fails for arc

Attached to Project: QCAD
Opened by Martin (martin) - Friday, 05 August 2011, 10:51 GMT+2
Last edited by Martin (martin) - Friday, 05 August 2011, 11:59 GMT+2
Task Type Bug Report
Category Main
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Medium
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Uncaught exception at scripts/Modify/IsoProject/IsoProject.js:166:
TypeError: Result of expression 'shape.approximateWithLines' [undefined] is not a function.
166	        var pl = shape.approximateWithLines(this.segmentLength);
qsdb> shape
RArc(RShape(address: "0xc436c88"), center: RVector(11, 8, 0) , radius:  6.08276 , startAngle:  0 ,
endAngle:  6.28319 , startPoint:  RVector(17.0828, 8, 0) , endPoint:  RVector(17.0828, 8, 0) ,
reversed:  false )
This task depends upon

Closed by  Martin (martin)
Friday, 05 August 2011, 11:59 GMT+2
Reason for closing:  Fixed
Additional comments about closing:  works now
Comment by Andrew (andrew) - Friday, 05 August 2011, 10:58 GMT+2

Either the ecma generator fails there or something is not up to date.
Can you check if RArc.srcml, RArc.xml, REcmaArc.cpp contain a method 'approximateWithLines'?

Comment by Martin (martin) - Friday, 05 August 2011, 11:08 GMT+2

everything below scale() is missing in the xml

    virtual bool scale(const RVector& scaleFactors, const RVector& center =
            RVector());

probably the default value, the srcml looks ok

Comment by Andrew (andrew) - Friday, 05 August 2011, 11:39 GMT+2

I've fixed that. Can you try to regenerate the ECMA wrappers?

Loading...