Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the points of the clipped surface #119

Open
Nowfal1993 opened this issue Feb 3, 2020 · 7 comments
Open

How to set the points of the clipped surface #119

Nowfal1993 opened this issue Feb 3, 2020 · 7 comments

Comments

@Nowfal1993
Copy link

Description

for example, I have a random surface like this
grafik
if I am clipping the surface with a plane along the z axis. The results would be like this:
grafik
But how we can set the points of the clipped surface to the points of the surface(in this case the points on the plane along the z axis) with which i clipped the real surface, so that I can avoid the empty spaces in the final surface. Thanks in advance

Example Data

@banesullivan
Copy link
Member

banesullivan commented Feb 3, 2020

To clarify, are you trying to fill the "holes" resulting from the clip?

When clipping 3D cells, intersection polygons are created along the clipping plane but with 2D cells like in your example, there is no way to safely fill the resulting "holes" that you see there during the clip.

There are some things we can do after the fact though

@Nowfal1993
Copy link
Author

Nowfal1993 commented Feb 3, 2020

Hi, Actually not trying filling the holes. If I clip the surface at z = 10(say). Instead of void points at the clipped portion, just wanna give the value z = 10.

In effect the points of the random surface above the plane has to be shifted to the plane

@banesullivan
Copy link
Member

banesullivan commented Feb 3, 2020

So you want to use the plane to sort of “flatten” the surface down?

Sent with GitHawk

@GuillaumeFavelier
Copy link

GuillaumeFavelier commented Feb 3, 2020

If your function is always an elevation, what you ask is the same as clamping the Z coordinates at 10 and clipping is not necessary.

@Nowfal1993
Copy link
Author

So you want to use the plane to sort of “flatten” the surface down?

Sent with GitHawk

yes. but not below the plane. only points above the plane.

@Nowfal1993
Copy link
Author

Nowfal1993 commented Feb 3, 2020

If your function is always an elevation, what you ask is the same as clamping the Z coordinates at 10 and clipping is not necessary.

Yes we can do it manaully, But my prior function is in such a way that its return a normal and centroid of the plane. But if the plane normal is not in exact z direction,, In such cases I cannot find the clipping points separtely. but I can clip the surface with the plane with certain centroid and the normal.

I hope you understand the problem with clamping

@GuillaumeFavelier
Copy link

GuillaumeFavelier commented Feb 3, 2020

I think I do and in my opinion, it looks close to topological simplification:

image
Image coming from a different project called TopologyToolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants