Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:10:36+00:00 2026-06-17T05:10:36+00:00

I am trying to extract a 1D line in a 3D field mygrid (a

  • 0

I am trying to extract a 1D line in a 3D field mygrid (a vtkStructuredGrid or vtkUnstructuredGrid) using a vtkCutter.
A dirty way is to do a first vtkCutter with a vtkPlane myplane1 and apply to the output another vtkCutter with vtkPlane myplane2.
This solution seems to work, but what I would like to do instead is to use a vtkImplicitBoolean to create the actual line and then apply only one vtkCutter with this function but I am not sure how this vtkImplicitBoolean works.
The obvious thing to do was :

myline = vtk.vtkImplicitBoolean()
myline.SetOperationTypeToIntersection()
myline.AddFunction(myplane1)
myline.AddFunction(myplane2)

cutter = vtk.vtkCutter()
cutter.SetCutFunction(myline)
cutter.SetInput(mygrid)
cutter.Update()
line = cutter.GetOutput()

But this does not return the result I was expecting : the output is a 2D cut composed of two half planes… I tried to change the boolean operation (Union, Difference) but nothing seems to work!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:10:37+00:00Added an answer on June 17, 2026 at 5:10 am

    It seems that a vtkCutter is only able to reduce your object dimension of 1 : 3D to 2D or 2D to 1D.
    vtkCutter doc says : In VTK, cutting means reducing a cell of dimension N to a cut surface of dimension N-1.

    That’s why the consecutive plane cuts works but not the dubble plane.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to extract the first complete number on each line from a
Im trying to extract part of a line with perl use strict; use warnings;
I am issuing a sed replace on a line, trying to extract a particular
im trying to extract some files from a jar-file downloaded using java-webstart. below code
I am trying to extract the video id from a youtube url using the
I am trying to extract some parts of the Video: line from below text.
I am trying to extract the strings from a Java project using xgettext with
I'm trying to extract the price from the bellow html page/link using php cURL
I'm trying to extract the first user-right from semicolon separated string which matches a
I am trying to extract the first words in a file by Python. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.