mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
-Create a new package BRepPreviewAPI, inherited from BRepPrimAPI to create both, valid and degenerative shapes -Create a new class BRepPreviewAPI_MakeBox for working with a box Preview can be vertex, edge, rectangle or box -BRepPrim_GWedge: in the case of non-valid data, the exception does not happen in the constructor, but at the moment of access to the shape -BRepPrimAPI_MakeBox: myWedge is now not private, but protected, because used in BRepPreviewAPI_MakeBox which inherits from BRepPrimAPI_MakeBox -Add tests for checking of a creation a preview in tests/geometry/preview (vertex, edge, rectangle, box) -Update a command "box": add new parameters
22 lines
621 B
Plaintext
22 lines
621 B
Plaintext
puts "=================================="
|
|
puts "0031336: Modeling data - extend BRepPrimAPI_MakeBox with planar shape creation"
|
|
puts "Check a creation preview if it is a rectangle"
|
|
puts "=================================="
|
|
|
|
pload TOPTEST
|
|
|
|
smallview +X+Y
|
|
|
|
set anImage1 $imagedir/${casename}_1.png
|
|
set anImage2 $imagedir/${casename}_2.png
|
|
|
|
box rect1 0.0 0.0 0.0 10.0 10.0 0.0 -preview
|
|
donly rect1
|
|
fit
|
|
checkview -screenshot -2d -path $anImage1
|
|
|
|
box rect2 -min 30.0 40.0 0.0 -max 50.0 60.0 0.0 -preview
|
|
donly rect2
|
|
fit
|
|
checkview -screenshot -2d -path $anImage2
|