Skip to content

Commit

Permalink
[bugfix] in adjust vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
kenarab committed Oct 31, 2024
1 parent e91f364 commit c68e6c0
Show file tree
Hide file tree
Showing 134 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: Rpolyhedra
Type: Package
Title: Polyhedra Database
Version: 0.5.5
Version: 0.5.6
Language: en-US
Authors@R: c(
person("Alejandro", "Baranek",,"abaranek@dc.uba.ar", c("aut","com","cre", "cph")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Rpolyhedra 0.5.6
============
### MINOR IMPROVEMENTS
* BUGFIX when vertices in solid but not defined

Rpolyhedra 0.5.5
============
### MINOR IMPROVEMENTS
Expand Down
14 changes: 6 additions & 8 deletions R/polyhedra-lib.R
Original file line number Diff line number Diff line change
Expand Up @@ -806,16 +806,14 @@ PolyhedronStateDefined <- R6::R6Class(
adjustVertices = function(normalize.size = TRUE) {
logger <- getLogger(self)
private$vertices.id.3d <- sort(unique(unlist(self$solid)))
vertices.id <- seq_len(nrow(self$vertices))
if (!identical(private$vertices.id.3d, vertices.id))
vertices.real <- seq_len(nrow(self$vertices))
vertices.missing <- setdiff(private$vertices.id.3d, vertices.real)
if (length(vertices.missing) > 0)
{
solid.not.vertices <- setdiff(private$vertices.id.3d, vertices.id)
vertices.not.solid <- setdiff(vertices.id, private$vertices.id.3d)
logger$warn("Differences in solid than in vertices",
missing.solid = solid.not.vertices,
missing.vertices = vertices.not.solid)
logger$warn("Verticea in solid not defined",
vertices.missing = vertices.missing)
}
private$vertices.id.3d <- intersect(private$vertices.id.3d, vertices.id)
private$vertices.id.3d <- intersect(private$vertices.id.3d, vertices.real)
self$vertices.centered <- self$vertices
#browser()
mass.center <- self$calculateMassCenter(
Expand Down
16 changes: 3 additions & 13 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"identifier": "Rpolyhedra",
"description": "A polyhedra database scraped from various sources as R6 objects and 'rgl' visualizing capabilities.",
"name": "Rpolyhedra: Polyhedra Database",
"relatedLink": ["https://docs.ropensci.org/Rpolyhedra/", "https://CRAN.R-project.org/package=Rpolyhedra"],
"relatedLink": "https://docs.ropensci.org/Rpolyhedra/",
"codeRepository": "https://github.com/ropensci/Rpolyhedra",
"issueTracker": "https://github.com/ropensci/Rpolyhedra/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.5.5",
"version": "0.5.6",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -267,15 +267,5 @@
},
"SystemRequirements": null
},
"fileSize": "2229.903KB",
"releaseNotes": "https://github.com/ropensci/Rpolyhedra/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/Rpolyhedra/blob/master/README.md",
"contIntegration": ["https://github.com/ropensci/Rpolyhedra/actions", "https://app.codecov.io/gh/ropensci/Rpolyhedra"],
"developmentStatus": "https://www.repostatus.org/#active",
"review": {
"@type": "Review",
"url": "https://github.com/ropensci/software-review/issues/157",
"provider": "https://ropensci.org"
},
"keywords": ["polyhedra-database", "geometry", "rgl"]
"fileSize": "2231.762KB"
}
Binary file modified inst/extdata/polyhedra.RDS
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/1b53af19.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/2d13193a.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/75a525aa.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/98d9147f.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/9cfe921d.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/b844f693.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/c26dab1e.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/c2ed6fc0.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/dmccooey/cecb7eda.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/011e6aa5.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/013c8d56.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/018facb1.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/02bf6e28.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/049fcc28.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/06592c44.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/06678c92.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/0bea582b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/1151cc88.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/135d3b3b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/13811592.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/15cafb47.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/162e6ada.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/16bc8c3a.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/1834f5c8.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/1cecd28f.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/1ed7c4eb.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/1f94cbba.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/2120e77b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/249171d0.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/249e5125.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/254037c6.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/25ea7772.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/265d43e2.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/275a5b5b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/27ea68b1.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/2be179dc.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/3346351c.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/3435c65e.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/34543164.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/346c21b0.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/34fe1260.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/35a6eff7.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/35db309a.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/369ad7b5.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/3bc5094f.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/3c4269ff.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/3d52d6c8.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/41ad8983.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/4437a6ca.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/463c0548.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/4b857767.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/53052db5.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/558ff660.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/5c2b6919.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/61116952.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/64b18a31.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/65a81360.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/65e51458.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/6879c873.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/69383818.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/6a8c3470.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/6b18eb73.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/7512b922.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/75be1c96.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/7635b688.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/7740b215.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/7b4af8a0.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/7b6d0744.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/81d5378a.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/822a6cae.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/8726b2d6.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/92006619.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/92add8a6.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/9ae4c50c.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/9b01d03f.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/9bc04794.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/9d826ad9.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/9f5c91aa.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a2e04824.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a47e4645.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a4dc42bf.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a4e2664a.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a6a91780.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/a8df0712.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/aed25469.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/b0f480ed.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/b4fa93d6.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/b515817d.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/b634e818.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/b7034094.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/bb6dd324.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/bbbfe93f.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/bcabaf81.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/bd38db04.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/c05b78f2.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/c17b0137.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/c301260e.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/c677f079.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/c9954f75.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/cbcb4124.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/cbcffbb9.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/cbdc1cef.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/ce24aaa5.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/cf4e183c.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/d0af0bc9.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/d484e616.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/d685b90c.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/d94f33b9.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/d9998a7b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/dc9fa583.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/dde7ac72.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/de7688cc.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/e0c587d5.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/e18d5c68.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/e3d9b0db.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/e5fa243c.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/e9a22c75.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/edfd962d.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/eff7e53b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f3295a93.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f399e005.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f4091898.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f7071c7d.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f8a1789b.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/f95d36c6.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/fa1459bf.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/fe70d311.RDS.zip
Binary file not shown.
Binary file modified inst/extdata/polyhedra/netlib/ff3a53a7.RDS.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion inst/extdata/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.5
0.5.6

0 comments on commit c68e6c0

Please sign in to comment.