Archived issue #0032633
Draw Harness - extend command incmesh to apply default visualization parameters
Description
`incmesh` command doesn't provide default linear deflection and defines angular deflection to 28.6 degrees (0.5 radians), which is different from 20 degrees used by default in visualization (Prs3d_Drawer::DeviationAngle()).
This makes it clumsy reproducing similar tessellation to be produced by `vdisplay` and `incmesh` commands.
It is proposed extending `incmesh` command with an option `-prs` which would apply deflection parameters similar to visualization defaults (e.g. like StdPrs_ToolTriangulatedShape::Tessellate()).
In addition, command `vdisplay` and `XDisplay` could be extended with option `-autoTriangulation` to conditionally disable autotriangulation within particular AIS presentation (compared to `vdefaults -autoTriangulation` affecting all presentations).
This makes it clumsy reproducing similar tessellation to be produced by `vdisplay` and `incmesh` commands.
It is proposed extending `incmesh` command with an option `-prs` which would apply deflection parameters similar to visualization defaults (e.g. like StdPrs_ToolTriangulatedShape::Tessellate()).
In addition, command `vdisplay` and `XDisplay` could be extended with option `-autoTriangulation` to conditionally disable autotriangulation within particular AIS presentation (compared to `vdefaults -autoTriangulation` affecting all presentations).
Steps to reproduce
N/A
Public activity
8 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Tue Oct 19 21:34:18 2021 +0300
0032633: Draw Harness - extend command incmesh to apply default visualization parameters
incmesh - added -prs option to use StdPrs_ToolTriangulatedShape::GetDeflection() as meshing parameters.
vdisplay, XDisplay - added -autoTriangulation option to manage meshing behavior before displaying a shape.
trinfo - added output of meshing parameters.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Tue Oct 19 21:34:18 2021 +0300
0032633: Draw Harness - extend command incmesh to apply default visualization parameters
incmesh - added -prs option to use StdPrs_ToolTriangulatedShape::GetDeflection() as meshing parameters.
vdisplay, XDisplay - added -autoTriangulation option to manage meshing behavior before displaying a shape.
trinfo - added output of meshing parameters.
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Patch is ready for review
- OCCT: branch CR32633.
http://jenkins-test-occt.nnov.opencascade.com/view/CR32633-master-KGV/
- OCCT: branch CR32633.
http://jenkins-test-occt.nnov.opencascade.com/view/CR32633-master-KGV/
The patch was reviewed
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17750.01000000046 / 17700.080000000395 [+0.28%]
Products
Total CPU difference: 11624.980000000118 / 11665.940000000111 [-0.35%]
Windows-64-VC14:
OCCT
---
Products
---
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17750.01000000046 / 17700.080000000395 [+0.28%]
Products
Total CPU difference: 11624.980000000118 / 11665.940000000111 [-0.35%]
Windows-64-VC14:
OCCT
---
Products
---
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records