← All bug reports

FS#156Isometric Projection fails for arc

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
Development
Operating system
All
Reported
2011-08-05 by anonymous
Closed
2011-08-05 by deleted user
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 ) 

Comments (3)

andrew 2011-08-05

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'?

deleted user 2011-08-05

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

andrew 2011-08-05

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

Closure comment

works now