mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Prs3d_DatumAspect::TextAspect() now takes Prs3d_DatumParts argument and defined separately for Prs3d_DatumParts_XAxis/Prs3d_DatumParts_YAxis/Prs3d_DatumParts_ZAxis. The method without arguments has been marked as deprecated. V3d_Trihedron now stores per-label text attributes. Added method V3d_View::Trihedron() returning V3d_Trihedron object for more straightforward definition. V3d_Trihedron::SetWireframe() - added missing invalidation. AIS_Trihedron::setOwnDatumAspect() implementation has been moved to Prs3d_DatumAspect::CopyAspectsFrom() and now used by Prs3d_Drawer::SetOwnDatumAspects(). OpenGl_Text::render() - added NULL-check. AIS_Trihedron::computePresentation() now takes into account Prs3d_Datum*Arrow shading/line aspects. Command vtrihedron has been extended by "-textColor XAxis|YAxis|ZAxis Color" syntax. Command vviewcube has been extended by "-xAxisTextColor|-yAxisTextColor|-zAxisTextColor" arguments.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
puts "==========="
|
|
puts "OCC27958: Visualization - add a shading mode for AIS_Trihedron"
|
|
puts "==========="
|
|
puts ""
|
|
|
|
pload VISUALIZATION
|
|
vclear
|
|
vinit View1
|
|
|
|
vzbufftrihedron -colorLabelX RED -colorLabelY GREEN -colorLabelZ BLUE
|
|
|
|
vtrihedron t0
|
|
|
|
vtrihedron t1
|
|
vselprops -selColor 1.0 0.0 0.0
|
|
vselmode t1 1 1
|
|
|
|
vselmode t1 2 1
|
|
vselmode t1 3 1
|
|
|
|
vtrihedron t1 -dispMode shading
|
|
vtrihedron t1 -origin -200 -200 -300
|
|
vtrihedron t1 -attribute XAxisLength|YAxisLength|ZAxisLength 80
|
|
vtrihedron t1 -xaxis 40 60 120 -zaxis -120 0 40
|
|
|
|
vtrihedron t1 -attribute TubeRadiusPercent 0.03
|
|
vtrihedron t1 -attribute ConeRadiusPercent|OriginRadiusPercent 0.05
|
|
vtrihedron t1 -color XAxis|XArrow RED -textColor XAxis RED
|
|
vtrihedron t1 -color YAxis|YArrow GREEN -textColor YAxis GREEN
|
|
vtrihedron t1 -color ZAxis|ZArrow|Origin BLUE -textColor ZAxis BLUE
|
|
|
|
vtrihedron t2 -origin 0 0 -300
|
|
vtrihedron t2 -color Whole PEACHPUFF
|
|
vselmode t2 1 1
|
|
vselmode t2 2 1
|
|
vselmode t2 3 1
|
|
|
|
vtrihedron t3 -dispMode shading -origin 200 200 -300 -color Whole 1.0 0.0 0.0
|
|
vtrihedron t3 -drawAxes XY -hideLabels on
|
|
|
|
vtrihedron t4 -origin -200 -200 300 -hideArrows
|
|
|
|
vfit
|
|
|
|
vdump $::imagedir/${::casename}.png
|