For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

HLRBRep_PolyAlgo does not respect origin point of CS?

WandererFan's picture
Forums: 

I obtain unexpected result when using HLRBRep_PolyAlgo vs HLRBRep_Algo. It appears that the poly algo does not respect the origin point of the coordinate system passed to HLRAlgo_Projector. Can anybody confirm or point out my usage error?
Note that in a perspective projection, HLRBRep_PolyAlgo does provide a result centred on the origin point of the CS, just as HLRBRep_Algo does.
Working sample code attached.
PolyAlgo Start
exactAlgo Result:
edge: 1 start: (-25,-25,0) end: (-25,25,0)
edge: 2 start: (25,-25,0) end: (25,25,0)
edge: 3 start: (-25,-25,0) end: (25,-25,0)
edge: 4 start: (-25,25,0) end: (25,25,0)

polyAlgo Result:
edge: 1 start: (0,50,0) end: (50,50,0)
edge: 2 start: (0,0,0) end: (50,0,0)
edge: 3 start: (50,0,0) end: (50,50,0)
edge: 4 start: (0,0,0) end: (0,50,0)
PolyAlgo End
Thanks,
wf

Edit: version is self compiled 7.2.0 on Ubuntu 12.04.

Attachments: 
WandererFan's picture

Edit: version is self compiled 7.2.0 on Ubuntu 12.04.