[Bug report] Scaling fails with linear (p-)curves

OCC 6.5.0.
If a face's edge lies on linear curve and (?) pcurve scaling produces wrong model.
DRAWEXE reproducer:
- pload MODELING
- pcylinder p 10 50
- explode p f
- tscale p_1 0 0 0 0.001 #p_1 is a cylindrical face
- tscale p_2 0 0 0 0.001 #p_2 is top planar face
#p_1 is wrong, p_2 is fine

- cylinder c 50
- mkface f c 0 5 0 10
- tscale f 0 0 0 0.001
# f is wrong

My assumption is that tscaling sets wrong SameRange/SameParameter flags - it keeps them true while ranges have changed and no longer match each other.

Can't check if it's a regression vs 6.3.0 or is an old issue.

Hope this helps.

Forum supervisor's picture

Dear Roman,
We couldn't reproduce the described problem with neither of OCCT 6.3.1, 6.4.0, 6.5.0 and 6.5.1.
Nevertheless we will keep the posted case to check it later together with your modifications.

Roman Lygin's picture

Thanks for a prompt feedback, supervisor!

My bad! Indeed, it is only observed in 6.5.0 + my some recent patch. Vanilla 6.5.0 works just fine.
Sorry for a false alarm. I will investigate the root-cause.