Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Right aligned italic text drawn by DrawTextW is clipped on the right side

This code procedure TForm1.Paint; var r: TRect; txt: WideString; begin inherited; r := Rect(0, 0, 200, 100); txt := 'Lorem ipsum dolor sit amet, consectetur ' + 'adipiscing elit, sed do ...
Paul's user avatar
  • 26.8k
0 votes
0 answers
46 views

How do determine inner border points of polygon intersection

I am trying to write a Python script that will return me all vertice locations (x,y) of inner intersecting edge between a square tile and a closed polygon with n-vertices. I got this far with my code, ...
tomazj's user avatar
  • 313
0 votes
0 answers
26 views

Getting values of contour within polygon path

I have the following issue. I have a function of two variables defined on a regular grid via np.meshgrid and I would like to get the coordinates of the points on some contour, within a bounding region ...
N P's user avatar
  • 1
0 votes
1 answer
62 views

Threejs clipping a wall

I have a 3d channel that contains cylinders which simulate a liquid. here's an example The issue is that the cylinders can overlap with the walls and show through them. I think i need to use clipping ...
user21941129's user avatar
1 vote
0 answers
49 views

How do I set up a draggable clip rectangle that completely clips and hides everything on the canvas not lying within the rectangle?

I would like a draggable rectangle over an entire canvas that will hide everything not within the rectangle. Think "fog-of-war" in a video game where you can't see anything outside the ...
Drew S.'s user avatar
  • 37
0 votes
2 answers
165 views

Implementation of 3D line clipping (Cohen-Sutherland clipping algorithm) - Stuck in infinite loop [closed]

I have followed instructions from Cohen–Sutherland algorithm to implement this. Normally clipping algorithm works just fine. But sometimes it get stuck in infinite loop with some lines while clipping ...
Shail's user avatar
  • 29
1 vote
1 answer
113 views

How to clip pixmap image according to scene shape

I am trying to clip a QGraphicsPixmapItem with the given boundaries of a QGraphicsScene. However, I think I do not really understand how that clipping works and as far as I read, it should clip the ...
ajfeuak's user avatar
  • 13
0 votes
0 answers
51 views

How to center a Cropped Grid?

How to center a child div that is cropped by top and bottom? There are plenty of uses cases and solutions for cropping and centering a single image, but in my case I have a complete grid consisting of ...
Sergej Bjakow's user avatar
0 votes
1 answer
86 views

Div with horizontal scrollbar clipping content [duplicate]

the following html / css, which is a simplified version of my code clips the left side of the scrollable div when the width of the screen gets too narrow. The horizontal scrollbar appears but you ...
raphi011's user avatar
  • 502
0 votes
1 answer
102 views

OpenGL: How do you use the stencil buffer to discard fragments closer than polygons drawn to stencil buffer?

In the engine I'm working with, I'm drawing some polygons to be used as a stencil for a portal of sorts, and I want to clip depth to it, in the sense that anything I draw after setting up the stencil, ...
Jordon Moss's user avatar
0 votes
0 answers
42 views

Cohen–Sutherland algorithm

in Cohen–Sutherland algorithm if p1 is in bottom and p2 is in right then the logical and operation between right=0001, bottom=0100 is 0000 which says the line is inside the clip window when its ...
Abhishek's user avatar
0 votes
1 answer
192 views

Plotting subspace in Python using matplotlib

I want to create a function in Python using matplotlib which can recreate the following image: That is, a function which takes as an argument 1, 2 or 3 vectors (so if 1 vector is provided, plot the ...
Bart Wolleswinkel's user avatar
0 votes
2 answers
193 views

Example program which uses QClipPlane from Qt3D

I'm looking for some example code of how to use QClipPlane, which is part of the Qt3D framework: https://doc.qt.io/qt-5/qt3drender-qclipplane.html. I can take the "basicshapes-cpp" demo ...
HarryP2023's user avatar
0 votes
2 answers
257 views

Use text as a clipping mask over an image during hover

I'm trying to create a hover effect for an image whereby: A headline text is revealed This headline text acts a clipping mask over the image in this image, state 1 (no hover) is on the left. you ...
reuben's user avatar
  • 11
-1 votes
1 answer
78 views

Random spawning (non-rigidbody) object clipping with ragdoll

I've been working with the ML-Agents library and trying to create a border around a randomly spawning target object. I created it, modified the script to teleport it to the same position as the target,...
Zelix75's user avatar
  • 81
0 votes
1 answer
93 views

Simulating older 3D games per-polygon clipping in Unity?

I'm trying to emulate older 3D games that did per-polygon clipping. Using degenerate triangles, it works except when looking away with the camera. Here's an animated GIF, a sphere with that material ...
aybe's user avatar
  • 16.8k
0 votes
0 answers
42 views

why does clipPath/mask become invisbile when clipped?

I've been trying to insert this background animated inside the below text (picture it just like a clipped mask in photoshop) but every time I put it inside a clipPath or mask tag it just disappears. ...
Simone's user avatar
  • 11
-1 votes
1 answer
177 views

How would I clip numbers in a list based on upper and lower limits? [closed]

Here are the instructions: Write a function called clipnums with three parameters – a list of numbers, a upper limit number, and a lower limit number. The function should return a new list where ...
joss's user avatar
  • 3
1 vote
1 answer
167 views

Why am I creating an extra row and column when I use rasterio.mask to clip a raster image?

I am trying to clip Raster2 to the extent of Raster1. The clip works successfully, but it I am getting an extra row and column in the output raster. Raster1 is a raster to the extent of the state of ...
Vance's user avatar
  • 85
0 votes
1 answer
55 views

Problem with clipping northern Canada polygons in R- geometry may not contain other geometry

I'm making a map in R. I get some intense tearing of polygons in northern Canada. It appears the issue is with this function gClip and the structure of the geometries in northern areas of Canada. How ...
ksweet's user avatar
  • 95
0 votes
0 answers
258 views

Printing metafile that includes clipping to PDF comes out blank

I have an application that prepares a drawing to an Enhanced Metafile. To produce output, this metafile is copied to a canvas; either a Paintbox (in custom preview window on screen) or a printer ...
Mark's user avatar
  • 140
0 votes
1 answer
361 views

How to achieve similar 2D "overflow-hidden" effect in 3D react-three-fiber?

I am trying to similar 2D effect of overflow-hidden but in 3D model with reference to this amazing kprverse website. I tried using clipping plane but it does not produce the same effect. Below is ...
LY Hooi's user avatar
  • 155
2 votes
1 answer
1k views

How would I go about clipping or masking an element by the shape of an SVG?

I have a multipath SVG that I would like to use to clip a CSS element. How would I go about making it so that the only part of the element I see is within the SVG? In other words, how would I make it ...
mysther's user avatar
  • 61
2 votes
2 answers
318 views

control per-axis ggplot2 clipping

This is an extension beyond a previous question, where the goal was to set different limits for each facet. The code from that question is stored in a gist, and has been in production since. A quick ...
r2evans's user avatar
  • 167k
0 votes
1 answer
107 views

ImageMagick creates a small black border around a clipped image

For our website, we clip images based on a clipping path. Since this needs to be done daily, for a lot of images, we have set up a server on which we run ImageMagick. I noticed that clipped images ...
wd3003's user avatar
  • 1
3 votes
1 answer
754 views

Matplotlib show|keep visible annotation line that disappears during pan/zoom?

Consider this code: import matplotlib as mpl import matplotlib.pyplot as plt fig = plt.figure() ax = fig.subplots() ax.plot([1, 2, 3, 4], [0, 0.5, 1, 0.2]) ax.annotate("", xy=(0,0), xytext=...
sdbbs's user avatar
  • 5,948
1 vote
1 answer
398 views

Clipping android view with Path and Outline in Android version greater than or equal to 30

I have an AppCompatImageView on an xml layout file. I set the source of the view as follows: android:src="@drawable/nicegradientshape" the shape is a simple rectangle I have been reading ...
i_o's user avatar
  • 799
0 votes
0 answers
28 views

Android custom control rendering issue

I have the following custom control as per below details *<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/...
ION GROZEA's user avatar
0 votes
0 answers
464 views

Center ThreeJS PlaneHelper on geometry

I am using local clipping to allow my users to drop clipping planes on my models. When they add a clipping plane, I'm using PlaneHelper to visualize where the plane is. I cannot seem to get the ...
spots's user avatar
  • 2,748
-1 votes
1 answer
441 views

How to fit/clip an axis aligned bounding box around a portion of a triangle

I have looked and looked and cannot find any resources on. I want to clip an axis aligned bounding box against a triangle in a way that creates a new tight fitting axis aligned bounding box around or ...
yosmo78's user avatar
  • 639
2 votes
0 answers
46 views

CSS: Overflow clipping while scrolling

I have a CSS problem in Firefox. I'm not 100% if it is a Firefox bug or is there a problem with the containers. Here is the codesandbox where I've tried to reproduce the problem: https://codesandbox....
claudiu's user avatar
  • 299
0 votes
0 answers
73 views

how to clip a dynamically created dialog controls

I have a dialog window (MFC, CDialogEx) on which I am displaying some kind of information - mostly text, with some hints about the context (hints made with background color, presence of frames and ...
Borek's user avatar
  • 91
1 vote
1 answer
260 views

How can I near clip vertices in homogenous clip space (-w < xyz < w)?

I currently have a system in place to near clip vertices, but it only seems to work in view space. The system is: Given a triangle, the near plane and the near plane normal, I check how many points ...
Steven Weller's user avatar
0 votes
1 answer
92 views

SlickGrid editable width in a column is smaller than column width

When we select a cell for editing, the maximum editable width is significantly less than the column width. This can leave long strings clipped and in the case of Slick.Editors.LongText, a popup that ...
Geoff's user avatar
  • 1
0 votes
2 answers
700 views

Know how to fix this Unity Terrain Trees/Details clipping issue?

I know Unity Terrain isn’t the most robust thing but has anyone ever seen this issue where a plane (in this case, the water) clips trees/details at certain angles? I had the same issue with a particle ...
Tim Samoff's user avatar
1 vote
1 answer
660 views

SVG Overflow: None (Clip SVG Inside Div)

How do I get the SVG to clip inside its container? I would like the blue circle not to be visible outside the red rectangle (like overflow:none; for divs). Although in this example, the SVG is a ...
lmat - Reinstate Monica's user avatar
1 vote
2 answers
765 views

Create this shape using ClipPath CustomClipper

I'm trying to clip a widget using ClipPath CustomClipper -> so far I was able to recreate a wave shape ClipPath( clipper: WaveClipper(), child: CustomWidget(), ); class ...
Sunshine's user avatar
  • 364
0 votes
2 answers
821 views

ffmpeg - divide video into 2 pieces

Is it possible to visually split video into 2 pieces using ffmpeg? I have many videos which have to be splitted into 2 videos which first is clipped to 50% of width and second from 50% to the end.
artolini's user avatar
  • 107
15 votes
2 answers
12k views

How to scale an image to fill the parent view without affecting the layout in SwiftUI?

Goal I often have the case where I want to scale an image so that it fills its container proportionally without modifying its frame. An example is seen in the first screenshot below. The container ...
Mischa's user avatar
  • 17.5k
2 votes
1 answer
825 views

How to clip a vertex that is behind the camera?

While developing a 3D renderer, I came across this issue. From what I read, clipping would normally be done like this with a canonical view: My understanding of canonical view clipping However, if ...
Martin Leung's user avatar
1 vote
2 answers
978 views

My second camera does not show my particle system

I have tried to use a second camera for my speed line particle system because that particles became invisible when an object comes to near to the screen. So I have a problem now my second camera does ...
Kemal Doğan's user avatar
1 vote
0 answers
133 views

Printing SVG ignores clipPath

I'm working on a page to map images to the faces of a hexahexaflexagon (folding paper thingie). To do this I need to crop the images to six triangles in a hexagon, then position those triangles in ...
Dethe's user avatar
  • 209
0 votes
1 answer
649 views

How to cut a figure (3D model) with a plane into 2 parts?

please tell me how to cut a figure into a plane into 2 parts, something like in the picture I tried to do as on this link, but it did not work, maybe someone else will tell you how you can divide the ...
Kamenskyh's user avatar
  • 495
3 votes
0 answers
238 views

Clip pixels inside area with OpenGL?

I have a rectangle that i need to clip (i mean clip pixels inside my area, not outside). glScissor works almost like i want, but as i said, i need to clip pixels INSIDE my area, but scissor works ...
n3xtbyte's user avatar
0 votes
1 answer
593 views

Vertical writing mode - text clipping inside a flex container

https://jsfiddle.net/hmudz2ky/1/ <div style="display: flex; border: 1px solid blue;"> <div id="test" style="border: 1px solid red;"> <div style="...
DeanR's user avatar
  • 370
0 votes
3 answers
67 views

How do I make <div> not cover images in HTML?

I used <div> to make a color changing background, but the background covers the image I have. How can I make the <div> stay in the background? (Btw I know in my code there's 2 sections for ...
D.og's user avatar
  • 33
3 votes
1 answer
2k views

Flutter Stack Clip not detecting gestures

I was trying to make a Solitaire game and was building the cards inside the previous one. But the stack clip parameter is giving me more work than I was imagining. If I put nothing inside the ...
FMorschel's user avatar
  • 882
3 votes
3 answers
2k views

How do I stop contents of my ListView extending beyond its boundaries when scrolling in Flutter?

I have a strange problem with a ListView in my Flutter app. I have a ListView sitting within a SizedBox of 220 pixels height. When the list items exceed the available height, then they bleed over into ...
Alex Cretney's user avatar
0 votes
2 answers
418 views

HTML canvas: How to achieve dropshadow on clipped object?

I am trying to draw a dropshadow on a clipped image. function drawCircle(ctx,w,h) { ctx.beginPath(); ctx.ellipse(w/2, h/2, w/2, h/2, 0, 2 * Math.PI, false); //ctx.fill(); // This helps, but ...
av01d's user avatar
  • 648
1 vote
1 answer
143 views

Clipping of meshes when rotating

I made a model composed from some meshes in three.js but when I move my camera using OrbitControls, it seems that some of my meshes clip. Here is the render I have: By searching on the Internet, I ...
Oromis's user avatar
  • 316

1
2 3 4 5
14