MantisBT - Open CASCADE
View Issue Details
0027792Open CASCADE[OCCT] OCCT:Foundation Classespublic2016-08-18 16:122019-07-10 22:29
dbp 
dbp 
normalminor 
assignedopen 
 
[OCCT] 7.5.0* 
0027792: TKMath, BVH -- Add tesselator API and implement base marching cube (MC) tessellator
The goal is to extend BVH package with complete set of algorithms allowing generation of distant fields from meshes (or another objects) and tessellation of distant fields. This allows to implement some geometrical algorithm in quite elegant way. E.g., the offset mesh for the given mesh can be calculated in the following way: the input mesh is converted into distant field that represetns the mesh in form of implicit function D(x, y, z) = 0. After that, for generation of offet mesh we need to perform tessellation of implicit function D(x, y, z) - T = 0, where T is desired offset distance.
N/A
No tags attached.
Issue History
2016-08-18 16:12dbpNew Issue
2016-08-18 16:12dbpAssigned To => abv
2016-08-18 16:12dbpAssigned Toabv => dbp
2016-08-18 16:14gitNote Added: 0056830
2016-08-18 16:17dbpNote Added: 0056831
2016-08-18 16:17dbpAssigned Todbp => abv
2016-08-18 16:17dbpStatusnew => resolved
2016-08-18 16:17dbpSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14432#r14432
2016-08-19 12:33abvNote Added: 0056863
2016-08-19 12:33abvStatusresolved => assigned
2016-08-19 12:34abvAssigned Toabv => dbp
2016-11-03 17:38abvTarget Version7.1.0 => 7.2.0
2017-07-27 09:43abvTarget Version7.2.0 => 7.4.0
2019-07-10 22:29abvTarget Version7.4.0 => 7.5.0*

Notes
(0056830)
git   
2016-08-18 16:14   
Branch CR27792 has been created by dbp.

SHA-1: a474d251529ba54448981f6863ccddcb59393d61


Detailed log of new commits:

Author: dbp
Date: Thu Aug 18 16:15:26 2016 +0300

    0027792: TKMath, BVH -- Add tesselator API and implement base marching cube (MC) tessellator
    
    The goal is to extend BVH package with complete set of algorithms allowing generation of
    distant fields from meshes (or another objects) and tessellation of distant fields. This
    allows to implement some geometrical algorithm in quite elegant way. E.g., the offset mesh
    for the given mesh can be calculated in the following way: the input mesh is converted into
    distant field that represents the mesh in form of implicit function D(x, y, z) = 0. After that,
    for generation of offset mesh we need to perform tessellation of implicit function D(x, y, z) - T = 0,
    where T is desired offset distance.
(0056831)
dbp   
2016-08-18 16:17   
Dear abv,

Could you please review the patch in branch CR27792?
(0056863)
abv   
2016-08-19 12:33   
As we discussed, please consider:

- replacing macros (like BVH_DOT3 in BVH_DistanceField.hxx) by inline functions

- providing some tests for the new functionality

- revising the template arguments of the classes that are intended to work only with 3d objects, to exclude dimension argument N, which suggests that the class can work with any dimension. I propose using typed argument instead of plain number, and providing reasonable default for most typical situation of using 3d double vectors.