Forum archiveIssue archiveOther usage issues

Archived discussion

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

Other usage issuesSat, 06/18/2011 - 13:282 replies

Browse this forum
QuestionAuthor

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.
Author

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Dear Author,
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.
Regards

02Author

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.
Author