Comments (1)
Try:
pol = [6 7 6 6 5 4 3.4000 2 2 1 2 2 6 6 NaN ...
3 3.7000 4.5000 5 5 3 3 NaN 4 5 5 4;
3.6667 4 5 6 6 7 6 6 3.6667 2 2.3333 2 2 3.6667 NaN ...
3.8333 5 5 4.5000 3.8333 3.1667 3.8333 NaN 3 3.3333 3 3]';
figure('color','w')
fillPolygon(pol, 'g')
drawPolygon(pol, 'r')
Or:
oRectangle = [0 0;10 0;10 10;0 10];
iRectangle = flipud(0.5*oRectangle+1);
pol = {oRectangle, iRectangle};
figure('color','w')
fillPolygon(pol)
from matgeom.
Related Issues (20)
- Orientations (yaw, pitch and roll) are very different for similar 3D points HOT 16
- Documentation on how to cite the work HOT 6
- [Question/ Enhancement] Possibility to dilate a geometry? HOT 2
- Octave install warning about verLessThan.m HOT 4
- getting started on octave HOT 4
- Standardization of the header HOT 20
- Move graphs\grSimplifyBranches_old.m to deprecated\graphs ? HOT 1
- Bugs in intersectEdges.m HOT 2
- Delete changelog.txt(s) ? HOT 4
- Move data files to subfolder or data folder? HOT 1
- clipPolygon3dHP is not fully implemented HOT 6
- medialAxisConvex is not fully implemented
- Plotting a vector of circles only plots the final circle in the vector HOT 4
- Rename clipPolygonHP to clipPolygonByLine? HOT 1
- Missing functions in Contents.m HOT 1
- Missing polygons2d.m HOT 4
- Rename clipMeshVertices to cutMeshVertices?
- vertexNormal duplicate of meshVertexNormals? HOT 1
- Rename polyhedronSlice to intersectPlaneConvexPolyhedron?
- Matgeom - verLessThan: package "matlab" is not installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matgeom.