puts "========"
puts "OCC28642"
puts "========"
puts ""
#########################################
# BRepOffsetAPI_ThruSections/BRepFill_Generator are modifying the input shape sections
#########################################

#check "closed" thrusection (first profile is same as the last)
polyline p1 0 0 0 1 0 0
polyline p2 2 1 0 2 2 0
polyline p3 3 0 0 4 0 0
polyline p4 2 -1 0 2 -2 0

setflags p1 locked
setflags p2 locked
setflags p3 locked
setflags p4 locked

thrusections result 0 0 p1 p2 p3 p4 p1 -safe

checkprops result -s 10.1587
checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 8

