Skip to content

[Core] Add GetPoint to Geometry.h#6456

Open
tteschemacher wants to merge 9 commits intomasterfrom
core/add_get_point
Open

[Core] Add GetPoint to Geometry.h#6456
tteschemacher wants to merge 9 commits intomasterfrom
core/add_get_point

Conversation

@tteschemacher
Copy link
Contributor

Hi all,

I am adding here a possible access to points of geometries with multiple dimensions. Here, the index does not need to be known, only the index per direction. This function would also coincide with the correct access of the shape functions.

Please let me know what you think about it?

Thx

Copy link
Contributor

@oberbichler oberbichler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea for NURBS or any other geometry with a regular mesh. I am just wondering what would be the value returned e.g. by a triangle.

* @brief Computes a vector index from three tensor indicies.
* @return index within vector
*/
static constexpr inline IndexType GetVectorIndexFromTensorIndices(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Tensor is not the best term. But one understands what is meant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree. If you have any suggestion I will be open for it!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ANurbs I call it single/double/triple index (last one is not in use). But that's not really critical. I think the behaviour on irregular meshes is more important.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw: what is the reason to put this function into the geometry base class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this comes from the irregular meshes (triangles), either we derive this function there, or the GetPoint functions. If it will be the GetPoint functions I totally agree that we need to extract this in an external file.

/// returns number of control points in direction u.
SizeType GetNumberOfPointsU() const override
{
return NumberOfControlPointsU();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make sense to rename NumberOfControlPointsU/V instead of heaving two functions with the same output.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. As this interface is already used I would change it as soon as this is agreed and merged.

Copy link
Contributor Author

@tteschemacher tteschemacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comments!

@tteschemacher tteschemacher requested a review from a team as a code owner April 15, 2020 06:55
@roigcarlo roigcarlo added this to the Cad Integration milestone Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants