Archived issue #0032633

Draw Harness - extend command incmesh to apply default visualization parameters

Open CASCADEOCCT:DRAWclosed8 public notes

Search issues

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

Steps to reproduce

N/A

Public activity

8 archived notes

Participants are labeled by their role within this record.

01Commenter 2
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.
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
05Author
Patch is ready for review
- OCCT: branch CR32633.

http://jenkins-test-occt.nnov.opencascade.com/view/CR32633-master-KGV/
06Commenter 6
The patch was reviewed
07Commenter 7
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
08Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records